Struct stripe::CreateSubscriptionItems
source · pub struct CreateSubscriptionItems {
pub billing_thresholds: Option<CreateSubscriptionItemsBillingThresholds>,
pub metadata: Option<Metadata>,
pub plan: Option<String>,
pub price: Option<String>,
pub price_data: Option<SubscriptionItemPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Fields§
§billing_thresholds: Option<CreateSubscriptionItemsBillingThresholds>
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
When updating, pass an empty string to remove previously-defined thresholds.
metadata: Option<Metadata>
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
plan: Option<String>
Plan ID for this item, as a string.
price: Option<String>
The ID of the price object.
price_data: Option<SubscriptionItemPriceData>
Data used to generate a new Price object inline.
quantity: Option<u64>
Quantity for this item.
tax_rates: Option<Vec<String>>
A list of Tax Rate ids.
These Tax Rates will override the default_tax_rates
on the Subscription.
When updating, pass an empty string to remove previously-defined tax rates.
Implementations§
Trait Implementations§
source§impl Clone for CreateSubscriptionItems
impl Clone for CreateSubscriptionItems
source§fn clone(&self) -> CreateSubscriptionItems
fn clone(&self) -> CreateSubscriptionItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSubscriptionItems
impl Debug for CreateSubscriptionItems
source§impl Default for CreateSubscriptionItems
impl Default for CreateSubscriptionItems
source§fn default() -> CreateSubscriptionItems
fn default() -> CreateSubscriptionItems
source§impl<'de> Deserialize<'de> for CreateSubscriptionItems
impl<'de> Deserialize<'de> for CreateSubscriptionItems
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CreateSubscriptionItems
impl RefUnwindSafe for CreateSubscriptionItems
impl Send for CreateSubscriptionItems
impl Sync for CreateSubscriptionItems
impl Unpin for CreateSubscriptionItems
impl UnwindSafe for CreateSubscriptionItems
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)