Struct gapi_grpc::google::cloud::retail::v2beta::PredictResponse[][src]

pub struct PredictResponse {
    pub results: Vec<PredictionResult>,
    pub attribution_token: String,
    pub missing_ids: Vec<String>,
    pub validate_only: bool,
}

Response message for predict method.

Fields

results: Vec<PredictionResult>

A list of recommended products. The order represents the ranking (from the most relevant product to the least).

attribution_token: String

A unique attribution token. This should be included in the [UserEvent][google.cloud.retail.v2beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

missing_ids: Vec<String>

IDs of products in the request that were missing from the inventory.

validate_only: bool

True if the validateOnly property was set in the request.

Trait Implementations

impl Clone for PredictResponse[src]

impl Debug for PredictResponse[src]

impl Default for PredictResponse[src]

impl Message for PredictResponse[src]

impl PartialEq<PredictResponse> for PredictResponse[src]

impl StructuralPartialEq for PredictResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for PredictResponse

impl Send for PredictResponse

impl Sync for PredictResponse

impl Unpin for PredictResponse

impl UnwindSafe for PredictResponse

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]