pub struct Customer {
pub id: String,
pub account_balance: i64,
pub business_vat_id: Option<String>,
pub created: u64,
pub currency: Option<Currency>,
pub default_source: Option<PaymentSourceId>,
pub delinquent: bool,
pub desc: Option<String>,
pub discount: Option<Discount>,
pub email: Option<String>,
pub livemode: bool,
pub metadata: Metadata,
pub shipping: Option<CustomerShippingDetails>,
pub sources: List<PaymentSource>,
pub subscriptions: List<Subscription>,
}
The resource representing a Stripe customer.
For more details see https://stripe.com/docs/api#customers.
Creates a new customer.
For more details see https://stripe.com/docs/api#create_customer.
Retrieves the details of a customer.
For more details see https://stripe.com/docs/api#retrieve_customer.
Updates a customer's properties.
For more details see https://stripe.com/docs/api#update_customer.
Deletes a customer.
For more details see https://stripe.com/docs/api#delete_customer.
List customers.
For more details see https://stripe.com/docs/api#list_customers.
Retrieves a Card, BankAccount, or Source for a Customer
Verifies a Bank Account for a Customer.
For more details see https://stripe.com/docs/api/customer_bank_accounts/verify.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static