pub struct GoogleCloudRetailV2PurchaseTransaction {
pub cost: Option<f32>,
pub currency_code: Option<String>,
pub id: Option<String>,
pub revenue: Option<f32>,
pub tax: Option<f32>,
}Expand description
A transaction represents the entire purchase transaction.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cost: Option<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: * Profit = revenue - tax - cost
currency_code: Option<String>Required. Currency code. Use three-character ISO-4217 code.
id: Option<String>The transaction ID with a length limit of 128 characters.
revenue: Option<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: Option<f32>All the taxes associated with the transaction.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2PurchaseTransaction
impl Clone for GoogleCloudRetailV2PurchaseTransaction
Source§fn clone(&self) -> GoogleCloudRetailV2PurchaseTransaction
fn clone(&self) -> GoogleCloudRetailV2PurchaseTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleCloudRetailV2PurchaseTransaction
impl Default for GoogleCloudRetailV2PurchaseTransaction
Source§fn default() -> GoogleCloudRetailV2PurchaseTransaction
fn default() -> GoogleCloudRetailV2PurchaseTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudRetailV2PurchaseTransaction
impl<'de> Deserialize<'de> for GoogleCloudRetailV2PurchaseTransaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudRetailV2PurchaseTransaction
Auto Trait Implementations§
impl Freeze for GoogleCloudRetailV2PurchaseTransaction
impl RefUnwindSafe for GoogleCloudRetailV2PurchaseTransaction
impl Send for GoogleCloudRetailV2PurchaseTransaction
impl Sync for GoogleCloudRetailV2PurchaseTransaction
impl Unpin for GoogleCloudRetailV2PurchaseTransaction
impl UnwindSafe for GoogleCloudRetailV2PurchaseTransaction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more