[][src]Struct libstripe::resources::checkout::sessions::Sessions

pub struct Sessions {
    pub id: String,
    pub object: Object,
    pub billing_address_collection: Option<BillingAddressCollection>,
    pub cancel_url: Option<String>,
    pub client_reference_id: Option<String>,
    pub customer: Option<Expandable<Customer>>,
    pub customer_email: Option<String>,
    pub display_items: Option<Vec<DisplayItems>>,
    pub livemode: bool,
    pub locale: Option<String>,
    pub payment_intent: Expandable<PaymentIntent>,
    pub payment_method_types: Vec<PaymentMethodsType>,
    pub subscription: Option<Expandable<Subscription>>,
    pub success_url: String,
}

Fields

id: Stringobject: Objectbilling_address_collection: Option<BillingAddressCollection>cancel_url: Option<String>client_reference_id: Option<String>customer: Option<Expandable<Customer>>customer_email: Option<String>display_items: Option<Vec<DisplayItems>>livemode: boollocale: Option<String>payment_intent: Expandable<PaymentIntent>payment_method_types: Vec<PaymentMethodsType>subscription: Option<Expandable<Subscription>>success_url: String

Methods

impl Sessions[src]

pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>[src]

pub fn retrieve(client: &Client, id: &str) -> Result<Self>[src]

Trait Implementations

impl PartialEq<Sessions> for Sessions[src]

impl Debug for Sessions[src]

impl Serialize for Sessions[src]

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

Auto Trait Implementations

impl Send for Sessions

impl Sync for Sessions

Blanket Implementations

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