[][src]Struct shopless_types::LineItem

pub struct LineItem {
    pub id: i64,
    pub sku: String,
    pub url: String,
    pub name: String,
    pub quantity: i32,
    pub price: String,
    pub price_cents: i64,
    pub taxrate: i32,
    pub total: String,
    pub total_cents: i64,
    pub options: Vec<LineItemOption>,
}

Fields

id: i64sku: Stringurl: Stringname: Stringquantity: i32price: Stringprice_cents: i64taxrate: i32total: Stringtotal_cents: i64options: Vec<LineItemOption>

Trait Implementations

impl Clone for LineItem[src]

impl Debug for LineItem[src]

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

impl Serialize for LineItem[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.