Struct stripe::model::Subscription

source ·
pub struct Subscription {
Show 43 fields pub application: Option<Value>, pub application_fee_percent: Option<f64>, pub automatic_tax: SubscriptionAutomaticTax, pub billing_cycle_anchor: i64, pub billing_thresholds: Option<Value>, pub cancel_at: Option<i64>, pub cancel_at_period_end: bool, pub canceled_at: Option<i64>, pub cancellation_details: Option<Value>, pub collection_method: String, pub created: i64, pub currency: String, pub current_period_end: i64, pub current_period_start: i64, pub customer: Value, pub days_until_due: Option<i64>, pub default_payment_method: Option<Value>, pub default_source: Option<Value>, pub default_tax_rates: Option<Vec<TaxRate>>, pub description: Option<String>, pub discount: Option<Value>, pub ended_at: Option<i64>, pub id: String, pub items: SubscriptionItemList, pub latest_invoice: Option<Value>, pub livemode: bool, pub metadata: Value, pub next_pending_invoice_item_invoice: Option<i64>, pub object: String, pub on_behalf_of: Option<Value>, pub pause_collection: Option<Value>, pub payment_settings: Option<Value>, pub pending_invoice_item_interval: Option<Value>, pub pending_setup_intent: Option<Value>, pub pending_update: Option<Value>, pub schedule: Option<Value>, pub start_date: i64, pub status: String, pub test_clock: Option<Value>, pub transfer_data: Option<Value>, pub trial_end: Option<i64>, pub trial_settings: Option<Value>, pub trial_start: Option<i64>,
}

Fields§

§application: Option<Value>§application_fee_percent: Option<f64>§automatic_tax: SubscriptionAutomaticTax§billing_cycle_anchor: i64§billing_thresholds: Option<Value>§cancel_at: Option<i64>§cancel_at_period_end: bool§canceled_at: Option<i64>§cancellation_details: Option<Value>§collection_method: String§created: i64§currency: String§current_period_end: i64§current_period_start: i64§customer: Value§days_until_due: Option<i64>§default_payment_method: Option<Value>§default_source: Option<Value>§default_tax_rates: Option<Vec<TaxRate>>§description: Option<String>§discount: Option<Value>§ended_at: Option<i64>§id: String§items: SubscriptionItemList§latest_invoice: Option<Value>§livemode: bool§metadata: Value§next_pending_invoice_item_invoice: Option<i64>§object: String§on_behalf_of: Option<Value>§pause_collection: Option<Value>§payment_settings: Option<Value>§pending_invoice_item_interval: Option<Value>§pending_setup_intent: Option<Value>§pending_update: Option<Value>§schedule: Option<Value>§start_date: i64§status: String§test_clock: Option<Value>§transfer_data: Option<Value>§trial_end: Option<i64>§trial_settings: Option<Value>§trial_start: Option<i64>

Trait Implementations§

source§

impl Clone for Subscription

source§

fn clone(&self) -> Subscription

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 Subscription

source§

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

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

impl<'de> Deserialize<'de> for Subscription

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 Subscription

source§

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

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

impl Serialize for Subscription

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>,