pub struct SubscriptionParams<'a> {
pub customer: Option<&'a str>,
pub application_fee_percent: Option<f64>,
pub coupon: Option<&'a str>,
pub items: Option<Vec<ItemParams<'a>>>,
pub metadata: Option<Metadata>,
pub plan: Option<&'a str>,
pub prorate: Option<bool>,
pub proration_date: Option<Timestamp>,
pub quantity: Option<u64>,
pub source: Option<&'a str>,
pub tax_percent: Option<f64>,
pub trial_end: Option<TrialEnd<'a>>,
pub trial_period_days: Option<u64>,
}
The set of parameters that can be used when creating or updating a subscription.
For more details see https://stripe.com/docs/api#create_subscription and https://stripe.com/docs/api#update_subscription.
Returns the "default value" for a type. Read more
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
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