pub struct CheckoutSession {
Show 54 fields pub after_expiration: Option<Value>, pub allow_promotion_codes: Option<bool>, pub amount_subtotal: Option<i64>, pub amount_total: Option<i64>, pub automatic_tax: PaymentPagesCheckoutSessionAutomaticTax, pub billing_address_collection: Option<String>, pub cancel_url: Option<String>, pub client_reference_id: Option<String>, pub client_secret: Option<String>, pub consent: Option<Value>, pub consent_collection: Option<Value>, pub created: i64, pub currency: Option<String>, pub currency_conversion: Option<Value>, pub custom_fields: Vec<PaymentPagesCheckoutSessionCustomFields>, pub custom_text: PaymentPagesCheckoutSessionCustomText, pub customer: Option<Value>, pub customer_creation: Option<String>, pub customer_details: Option<Value>, pub customer_email: Option<String>, pub expires_at: i64, pub id: String, pub invoice: Option<Value>, pub invoice_creation: Option<Value>, pub line_items: Option<PaymentPagesCheckoutSessionListLineItems>, pub livemode: bool, pub locale: Option<String>, pub metadata: Option<Value>, pub mode: String, pub object: String, pub payment_intent: Option<Value>, pub payment_link: Option<Value>, pub payment_method_collection: Option<String>, pub payment_method_configuration_details: Option<Value>, pub payment_method_options: Option<Value>, pub payment_method_types: Vec<String>, pub payment_status: String, pub phone_number_collection: Option<PaymentPagesCheckoutSessionPhoneNumberCollection>, pub recovered_from: Option<String>, pub redirect_on_completion: Option<String>, pub return_url: Option<String>, pub setup_intent: Option<Value>, pub shipping_address_collection: Option<Value>, pub shipping_cost: Option<Value>, pub shipping_details: Option<Value>, pub shipping_options: Vec<PaymentPagesCheckoutSessionShippingOption>, pub status: Option<String>, pub submit_type: Option<String>, pub subscription: Option<Value>, pub success_url: Option<String>, pub tax_id_collection: Option<PaymentPagesCheckoutSessionTaxIdCollection>, pub total_details: Option<Value>, pub ui_mode: Option<String>, pub url: Option<String>,
}

Fields§

§after_expiration: Option<Value>§allow_promotion_codes: Option<bool>§amount_subtotal: Option<i64>§amount_total: Option<i64>§automatic_tax: PaymentPagesCheckoutSessionAutomaticTax§billing_address_collection: Option<String>§cancel_url: Option<String>§client_reference_id: Option<String>§client_secret: Option<String>§consent: Option<Value>§consent_collection: Option<Value>§created: i64§currency: Option<String>§currency_conversion: Option<Value>§custom_fields: Vec<PaymentPagesCheckoutSessionCustomFields>§custom_text: PaymentPagesCheckoutSessionCustomText§customer: Option<Value>§customer_creation: Option<String>§customer_details: Option<Value>§customer_email: Option<String>§expires_at: i64§id: String§invoice: Option<Value>§invoice_creation: Option<Value>§line_items: Option<PaymentPagesCheckoutSessionListLineItems>§livemode: bool§locale: Option<String>§metadata: Option<Value>§mode: String§object: String§payment_intent: Option<Value>§payment_link: Option<Value>§payment_method_collection: Option<String>§payment_method_configuration_details: Option<Value>§payment_method_options: Option<Value>§payment_method_types: Vec<String>§payment_status: String§phone_number_collection: Option<PaymentPagesCheckoutSessionPhoneNumberCollection>§recovered_from: Option<String>§redirect_on_completion: Option<String>§return_url: Option<String>§setup_intent: Option<Value>§shipping_address_collection: Option<Value>§shipping_cost: Option<Value>§shipping_details: Option<Value>§shipping_options: Vec<PaymentPagesCheckoutSessionShippingOption>§status: Option<String>§submit_type: Option<String>§subscription: Option<Value>§success_url: Option<String>§tax_id_collection: Option<PaymentPagesCheckoutSessionTaxIdCollection>§total_details: Option<Value>§ui_mode: Option<String>§url: Option<String>

Trait Implementations§

source§

impl Clone for CheckoutSession

source§

fn clone(&self) -> CheckoutSession

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CheckoutSession

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CheckoutSession

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for CheckoutSession

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Serialize for CheckoutSession

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,