[][src]Struct stripe::Inventory

pub struct Inventory {
    pub quantity: Option<u64>,
    pub type_: String,
    pub value: Option<String>,
}

Fields

quantity: Option<u64>

The count of inventory available.

Will be present if and only if type is finite.

type_: String

Inventory type.

Possible values are finite, bucket (not quantified), and infinite.

value: Option<String>

An indicator of the inventory available.

Possible values are in_stock, limited, and out_of_stock. Will be present if and only if type is bucket.

Trait Implementations

impl Clone for Inventory[src]

impl Debug for Inventory[src]

impl Serialize for Inventory[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self