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

pub struct PurchaseTransaction {
    pub id: String,
    pub revenue: f32,
    pub tax: f32,
    pub cost: f32,
    pub currency_code: String,
}

A transaction represents the entire purchase transaction.

Fields

id: String

The transaction ID with a length limit of 128 characters.

revenue: f32

Required. Total non-zero revenue or grand total associated with the transaction. This value include shipping, tax, or other adjustments to total revenue that you want to include as part of your revenue calculations.

tax: f32

All the taxes associated with the transaction.

cost: f32

All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that:

currency_code: String

Required. Currency code. Use three-character ISO-4217 code.

Trait Implementations

impl Clone for PurchaseTransaction[src]

impl Debug for PurchaseTransaction[src]

impl Default for PurchaseTransaction[src]

impl Message for PurchaseTransaction[src]

impl PartialEq<PurchaseTransaction> for PurchaseTransaction[src]

impl StructuralPartialEq for PurchaseTransaction[src]

Auto Trait Implementations

impl RefUnwindSafe for PurchaseTransaction

impl Send for PurchaseTransaction

impl Sync for PurchaseTransaction

impl Unpin for PurchaseTransaction

impl UnwindSafe for PurchaseTransaction

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]