pub struct SourceOrderItem {
pub amount: Option<i64>,
pub currency: Option<Currency>,
pub description: Option<String>,
pub parent: Option<String>,
pub quantity: Option<u64>,
pub type_: Option<String>,
}Fields§
§amount: Option<i64>The amount (price) for this order item.
currency: Option<Currency>This currency of this order item.
Required when amount is present.
description: Option<String>Human-readable description for this order item.
parent: Option<String>The ID of the associated object for this line item.
Expandable if not null (e.g., expandable to a SKU).
quantity: Option<u64>The quantity of this order item.
When type is sku, this is the number of instances of the SKU to be ordered.
type_: Option<String>The type of this order item.
Must be sku, tax, or shipping.
Trait Implementations§
source§impl Clone for SourceOrderItem
impl Clone for SourceOrderItem
source§fn clone(&self) -> SourceOrderItem
fn clone(&self) -> SourceOrderItem
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 SourceOrderItem
impl Debug for SourceOrderItem
source§impl Default for SourceOrderItem
impl Default for SourceOrderItem
source§fn default() -> SourceOrderItem
fn default() -> SourceOrderItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SourceOrderItem
impl<'de> Deserialize<'de> for SourceOrderItem
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