Struct primer_api::model::OrderLineItemsApiSchema  
source · [−]pub struct OrderLineItemsApiSchema {
    pub amount: Value,
    pub item_id: Option<String>,
    pub name: Option<String>,
    pub product_data: Option<OrderLineItemsProductDataApiSchema>,
    pub discount_amount: Option<Value>,
    pub quantity: Option<i64>,
    pub tax_code: Option<String>,
    pub tax_amount: Option<i64>,
    pub description: Option<String>,
    pub product_type: Option<String>,
}Fields
amount: ValueThe amount charged to the customer, in minor units.
item_id: Option<String>A unique identifier for the line item.
name: Option<String>A name of the item.
product_data: Option<OrderLineItemsProductDataApiSchema>Details related to the product
discount_amount: Option<Value>Any discount applicable to this item, in minor units. This discount is applied for the entire line item, and not per quantity.
quantity: Option<i64>The number of the particular line item that is being ordered.
tax_code: Option<String>The tax code associated with this item, in minor units. This is required for Primer-initiated tax calculations.
tax_amount: Option<i64>The tax charged on this item, in minor units. This tax amount is applied for the entire line item, and not per quantity.
description: Option<String>A description of the item.
product_type: Option<String>An identifier for the product type.
Trait Implementations
sourceimpl Debug for OrderLineItemsApiSchema
 
impl Debug for OrderLineItemsApiSchema
sourceimpl<'de> Deserialize<'de> for OrderLineItemsApiSchema
 
impl<'de> Deserialize<'de> for OrderLineItemsApiSchema
sourcefn 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
sourceimpl Display for OrderLineItemsApiSchema
 
impl Display for OrderLineItemsApiSchema
sourceimpl Serialize for OrderLineItemsApiSchema
 
impl Serialize for OrderLineItemsApiSchema
Auto Trait Implementations
impl RefUnwindSafe for OrderLineItemsApiSchema
impl Send for OrderLineItemsApiSchema
impl Sync for OrderLineItemsApiSchema
impl Unpin for OrderLineItemsApiSchema
impl UnwindSafe for OrderLineItemsApiSchema
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more