Struct stripe::Source[][src]

pub struct Source {
    pub id: String,
    pub amount: Option<i64>,
    pub client_secret: Option<String>,
    pub code_verification: Option<CodeVerification>,
    pub created: Timestamp,
    pub currency: Option<Currency>,
    pub flow: Option<String>,
    pub livemode: bool,
    pub metadata: Option<Metadata>,
    pub owner: Option<Owner>,
    pub receiver: Option<Receiver>,
    pub redirect: Option<Redirect>,
    pub statement_descriptor: Option<String>,
    pub status: Option<String>,
    pub source_type: Option<String>,
    pub usage: Option<String>,
}

The resource representing a Stripe source.

For more details see https://stripe.com/docs/api#sources.

Fields

Methods

impl Source
[src]

Attaches a source to a customer, does not change default Source for the Customer

For more details see https://stripe.com/docs/api#attach_source.

Detaches a source from a customer

For more details see https://stripe.com/docs/api#detach_source.

Trait Implementations

impl Debug for Source
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Source

impl Sync for Source