Struct gapi_grpc::google::cloud::retail::v2::ProductDetail[][src]

pub struct ProductDetail {
    pub product: Option<Product>,
    pub quantity: Option<i32>,
}

Detailed product information associated with a user event.

Fields

product: Option<Product>

Required. [Product][google.cloud.retail.v2.Product] information.

Only [Product.id][google.cloud.retail.v2.Product.id] field is used when ingesting an event, all other product fields are ignored as we will look them up from the catalog.

quantity: Option<i32>

Quantity of the product associated with the user event.

For example, this field will be 2 if two products are added to the shopping cart for purchase-complete event. Required for add-to-cart and purchase-complete event types.

Trait Implementations

impl Clone for ProductDetail[src]

impl Debug for ProductDetail[src]

impl Default for ProductDetail[src]

impl Message for ProductDetail[src]

impl PartialEq<ProductDetail> for ProductDetail[src]

impl StructuralPartialEq for ProductDetail[src]

Auto Trait Implementations

impl RefUnwindSafe for ProductDetail

impl Send for ProductDetail

impl Sync for ProductDetail

impl Unpin for ProductDetail

impl UnwindSafe for ProductDetail

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]