[][src]Struct shopless_types::Order

pub struct Order {
    pub id: i64,
    pub order_id: String,
    pub origin: String,
    pub locale: String,
    pub custom_status: String,
    pub date: String,
    pub date_time: DateTime<Utc>,
    pub payment_method: String,
    pub payment_method_name: String,
    pub payment_instructions: Option<String>,
    pub invoice_number: Option<String>,
    pub invoice_date: Option<NaiveDate>,
    pub currency: String,
    pub shipping_method: String,
    pub shipping_method_name: String,
    pub subtotal: String,
    pub subtotal_cents: i64,
    pub shipping: String,
    pub shipping_taxrate: i32,
    pub shipping_cents: i64,
    pub discount: Option<String>,
    pub tax: Option<String>,
    pub tax_cents: Option<i64>,
    pub total: String,
    pub total_cents: i64,
    pub email: String,
    pub invoice_address: Address,
    pub shipping_address: Address,
    pub line_items: Vec<LineItem>,
    pub shipment: Option<Value>,
    pub token: String,
    pub coupon: Option<String>,
    pub prioritize: bool,
    pub note: Option<String>,
    pub today: String,
}

Fields

id: i64order_id: Stringorigin: Stringlocale: Stringcustom_status: Stringdate: Stringdate_time: DateTime<Utc>payment_method: Stringpayment_method_name: Stringpayment_instructions: Option<String>invoice_number: Option<String>invoice_date: Option<NaiveDate>currency: Stringshipping_method: Stringshipping_method_name: Stringsubtotal: Stringsubtotal_cents: i64shipping: Stringshipping_taxrate: i32shipping_cents: i64discount: Option<String>tax: Option<String>tax_cents: Option<i64>total: Stringtotal_cents: i64email: Stringinvoice_address: Addressshipping_address: Addressline_items: Vec<LineItem>shipment: Option<Value>token: Stringcoupon: Option<String>prioritize: boolnote: Option<String>today: String

Trait Implementations

impl Clone for Order[src]

impl Debug for Order[src]

impl<'de> Deserialize<'de> for Order[src]

impl Serialize for Order[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.