pub struct GoogleCloudRecommendationengineV1beta1ProductDetail {
    pub available_quantity: Option<i32>,
    pub currency_code: Option<String>,
    pub display_price: Option<f32>,
    pub id: Option<String>,
    pub item_attributes: Option<GoogleCloudRecommendationengineV1beta1FeatureMap>,
    pub original_price: Option<f32>,
    pub quantity: Option<i32>,
    pub stock_state: Option<String>,
}
Expand description

Detailed product information associated with a user event.

This type is not used in any activity, and only used as part of another schema.

Fields

available_quantity: Option<i32>

Optional. Quantity of the products in stock when a user event happens. Optional. If provided, this overrides the available quantity in Catalog for this event. and can only be set if stock_status is set to IN_STOCK. Note that if an item is out of stock, you must set the stock_state field to be OUT_OF_STOCK. Leaving this field unspecified / as zero is not sufficient to mark the item out of stock.

currency_code: Option<String>

Optional. Currency code for price/costs. Use three-character ISO-4217 code. Required only if originalPrice or displayPrice is set.

display_price: Option<f32>

Optional. Display price of the product (e.g. discounted price). If provided, this will override the display price in Catalog for this product.

id: Option<String>

Required. Catalog item ID. UTF-8 encoded string with a length limit of 128 characters.

item_attributes: Option<GoogleCloudRecommendationengineV1beta1FeatureMap>

Optional. Extra features associated with a product in the user event.

original_price: Option<f32>

Optional. Original price of the product. If provided, this will override the original price in Catalog for this product.

quantity: Option<i32>

Optional. 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 add-to-cart event. Required for add-to-cart, add-to-list, remove-from-cart, checkout-start, purchase-complete, refund event types.

stock_state: Option<String>

Optional. Item stock state. If provided, this overrides the stock state in Catalog for items in this event.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more