Struct libstripe::Subscription

source ·
pub struct Subscription {
Show 21 fields pub id: String, pub object: Object, pub application_fee_percent: Option<i32>, pub cancel_at_period_end: bool, pub canceled_at: Option<i64>, pub created: i64, pub current_period_end: i64, pub current_period_start: i64, pub customer: String, pub discount: Option<String>, pub ended_at: Option<i64>, pub items: List<SubscriptionItems>, pub livemode: bool, pub metadata: HashMap<String, String>, pub plan: Plans, pub quantity: i64, pub start: i64, pub status: SubscriptionStatus, pub tax_percent: Option<f64>, pub trial_end: Option<i64>, pub trial_start: Option<i64>,
}

Fields§

§id: String§object: Object§application_fee_percent: Option<i32>§cancel_at_period_end: bool§canceled_at: Option<i64>§created: i64§current_period_end: i64§current_period_start: i64§customer: String§discount: Option<String>§ended_at: Option<i64>§items: List<SubscriptionItems>§livemode: bool§metadata: HashMap<String, String>§plan: Plans§quantity: i64§start: i64§status: SubscriptionStatus§tax_percent: Option<f64>§trial_end: Option<i64>§trial_start: Option<i64>

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.