pub struct OrderLineItemProperties {Show 14 fields
pub id: i32,
pub name: String,
pub product_id: i32,
pub variation_id: Option<i32>,
pub quantity: i32,
pub tax_class: String,
pub subtotal: String,
pub subtotal_tax: String,
pub total: String,
pub total_tax: String,
pub taxes: Vec<OrderTax>,
pub meta_data: Vec<MetaData>,
pub sku: Option<String>,
pub price: f64,
}
Fields§
§id: i32
Item ID.
name: String
Product name.
product_id: i32
Product ID.
variation_id: Option<i32>
Variation ID, if applicable.
quantity: i32
Quantity ordered.
tax_class: String
Slug of the tax class of product.
subtotal: String
Line subtotal (before discounts).
subtotal_tax: String
Line subtotal tax (before discounts).
total: String
Line total (after discounts).
total_tax: String
Line total tax (after discounts).
taxes: Vec<OrderTax>
Line taxes.
meta_data: Vec<MetaData>
Meta data.
sku: Option<String>
Product SKU.
price: f64
Product price.
Trait Implementations§
Source§impl Clone for OrderLineItemProperties
impl Clone for OrderLineItemProperties
Source§fn clone(&self) -> OrderLineItemProperties
fn clone(&self) -> OrderLineItemProperties
Returns a copy 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 OrderLineItemProperties
impl Debug for OrderLineItemProperties
Source§impl<'de> Deserialize<'de> for OrderLineItemProperties
impl<'de> Deserialize<'de> for OrderLineItemProperties
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
Auto Trait Implementations§
impl Freeze for OrderLineItemProperties
impl RefUnwindSafe for OrderLineItemProperties
impl Send for OrderLineItemProperties
impl Sync for OrderLineItemProperties
impl Unpin for OrderLineItemProperties
impl UnwindSafe for OrderLineItemProperties
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