Struct google_recommendationengine1_beta1::api::GoogleCloudRecommendationengineV1beta1ProductDetail [−][src]
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
impl Clone for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
fn clone(&self) -> GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
impl Default for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
impl<'de> Deserialize<'de> for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
impl Serialize for GoogleCloudRecommendationengineV1beta1ProductDetail
[src]
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudRecommendationengineV1beta1ProductDetail
impl Send for GoogleCloudRecommendationengineV1beta1ProductDetail
impl Sync for GoogleCloudRecommendationengineV1beta1ProductDetail
impl Unpin for GoogleCloudRecommendationengineV1beta1ProductDetail
impl UnwindSafe for GoogleCloudRecommendationengineV1beta1ProductDetail
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,