pub struct ProductData {
pub item_revenue: Option<f64>,
pub product_name: Option<String>,
pub product_quantity: Option<i64>,
pub product_sku: Option<String>,
}Expand description
Details of the products in an e-commerce transaction.
This type is not used in any activity, and only used as part of another schema.
Fields§
§item_revenue: Option<f64>The total revenue from purchased product items.
product_name: Option<String>The product name, supplied by the e-commerce tracking application, for the purchased items.
product_quantity: Option<i64>Total number of this product units in the transaction.
product_sku: Option<String>Unique code that represents the product.
Trait Implementations§
Source§impl Clone for ProductData
impl Clone for ProductData
Source§fn clone(&self) -> ProductData
fn clone(&self) -> ProductData
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 Debug for ProductData
impl Debug for ProductData
Source§impl Default for ProductData
impl Default for ProductData
Source§fn default() -> ProductData
fn default() -> ProductData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProductData
impl<'de> Deserialize<'de> for ProductData
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
Source§impl Serialize for ProductData
impl Serialize for ProductData
impl Part for ProductData
Auto Trait Implementations§
impl Freeze for ProductData
impl RefUnwindSafe for ProductData
impl Send for ProductData
impl Sync for ProductData
impl Unpin for ProductData
impl UnwindSafe for ProductData
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