Struct stripe::CheckoutSessionItem[][src]

pub struct CheckoutSessionItem {
    pub id: CheckoutSessionItemId,
    pub amount_subtotal: Option<i64>,
    pub amount_total: Option<i64>,
    pub currency: Currency,
    pub description: String,
    pub discounts: Option<Vec<LineItemsDiscountAmount>>,
    pub price: Option<Price>,
    pub quantity: Option<u64>,
    pub taxes: Option<Vec<LineItemsTaxAmount>>,
}

The resource representing a Stripe "LineItem".

Fields

id: CheckoutSessionItemId

Unique identifier for the object.

amount_subtotal: Option<i64>

Total before any discounts or taxes are applied.

amount_total: Option<i64>

Total after discounts and taxes.

currency: Currency

Three-letter ISO currency code, in lowercase.

Must be a supported currency.

description: String

An arbitrary string attached to the object.

Often useful for displaying to users. Defaults to product name.

discounts: Option<Vec<LineItemsDiscountAmount>>

The discounts applied to the line item.

price: Option<Price>

The price used to generate the line item.

quantity: Option<u64>

The quantity of products being purchased.

taxes: Option<Vec<LineItemsTaxAmount>>

The taxes applied to the line item.

Trait Implementations

impl Clone for CheckoutSessionItem[src]

impl Debug for CheckoutSessionItem[src]

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

impl Object for CheckoutSessionItem[src]

type Id = CheckoutSessionItemId

The canonical id type for this object.

impl Serialize for CheckoutSessionItem[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]