Struct gapi_grpc::google::cloud::retail::v2alpha::PriceInfo[][src]

pub struct PriceInfo {
    pub currency_code: String,
    pub price: f32,
    pub original_price: f32,
    pub cost: f32,
}

The price information of a [Product][google.cloud.retail.v2alpha.Product].

Fields

currency_code: String

The 3-letter currency code defined in ISO 4217.

If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned.

price: f32

Price of the product.

Google Merchant Center property price. Schema.org property Offer.priceSpecification.

original_price: f32

Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2alpha.PriceInfo.price].

cost: f32

The costs associated with the sale of a particular product. Used for gross profit reporting.

Google Merchant Center property cost_of_goods_sold.

Trait Implementations

impl Clone for PriceInfo[src]

impl Debug for PriceInfo[src]

impl Default for PriceInfo[src]

impl Message for PriceInfo[src]

impl PartialEq<PriceInfo> for PriceInfo[src]

impl StructuralPartialEq for PriceInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for PriceInfo

impl Send for PriceInfo

impl Sync for PriceInfo

impl Unpin for PriceInfo

impl UnwindSafe for PriceInfo

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]