[][src]Struct shopless_types::Order

pub struct Order {
    pub id: i64,
    pub order_id: String,
    pub origin: String,
    pub locale: String,
    pub date: String,
    pub date_time: DateTime<Utc>,
    pub payment_method: String,
    pub payment_instructions: Option<String>,
    pub currency: String,
    pub shipping_method: String,
    pub shipping_method_name: String,
    pub subtotal: String,
    pub subtotal_cents: i64,
    pub shipping: String,
    pub shipping_cents: i64,
    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 custom_status: String,
    pub shipment: Option<Value>,
    pub token: String,
    pub today: String,
}

Fields

id: i64order_id: Stringorigin: Stringlocale: Stringdate: Stringdate_time: DateTime<Utc>payment_method: Stringpayment_instructions: Option<String>currency: Stringshipping_method: Stringshipping_method_name: Stringsubtotal: Stringsubtotal_cents: i64shipping: Stringshipping_cents: i64tax: Option<String>tax_cents: Option<i64>total: Stringtotal_cents: i64email: Stringinvoice_address: Addressshipping_address: Addressline_items: Vec<LineItem>custom_status: Stringshipment: Option<Value>token: Stringtoday: 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

impl RefUnwindSafe for Order

impl Send for Order

impl Sync for Order

impl Unpin for Order

impl UnwindSafe for Order

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.