Struct google_retail2::api::GoogleCloudRetailV2PriceInfo[][src]

pub struct GoogleCloudRetailV2PriceInfo {
    pub cost: Option<f32>,
    pub currency_code: Option<String>,
    pub original_price: Option<f32>,
    pub price: Option<f32>,
}

The price information of a Product.

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

Fields

cost: Option<f32>

The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property cost_of_goods_sold.

currency_code: Option<String>

The 3-letter currency code defined in ISO 4217. If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned.

original_price: Option<f32>

Price of the product without any discount. If zero, by default set to be the price.

price: Option<f32>

Price of the product. Google Merchant Center property price. Schema.org property Offer.priceSpecification.

Trait Implementations

impl Clone for GoogleCloudRetailV2PriceInfo[src]

impl Debug for GoogleCloudRetailV2PriceInfo[src]

impl Default for GoogleCloudRetailV2PriceInfo[src]

impl<'de> Deserialize<'de> for GoogleCloudRetailV2PriceInfo[src]

impl Part for GoogleCloudRetailV2PriceInfo[src]

impl Serialize for GoogleCloudRetailV2PriceInfo[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.