pub struct SubscriptionItem {
    pub id: SubscriptionItemId,
    pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
    pub created: Option<Timestamp>,
    pub deleted: bool,
    pub metadata: Metadata,
    pub price: Option<Price>,
    pub quantity: Option<u64>,
    pub subscription: Option<String>,
    pub tax_rates: Option<Vec<TaxRate>>,
}
Expand description

The resource representing a Stripe “SubscriptionItem”.

For more details see https://stripe.com/docs/api/subscription_items/object

Fields

id: SubscriptionItemId

Unique identifier for the object.

billing_thresholds: Option<SubscriptionItemBillingThresholds>

Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.

created: Option<Timestamp>

Time at which the object was created.

Measured in seconds since the Unix epoch.

deleted: boolmetadata: 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.

price: Option<Price>quantity: Option<u64>

The quantity of the plan to which the customer should be subscribed.

subscription: Option<String>

The subscription this subscription_item belongs to.

tax_rates: Option<Vec<TaxRate>>

The tax rates which apply to this subscription_item.

When set, the default_tax_rates on the subscription do not apply to this subscription_item.

Implementations

Returns a list of your subscription items for a given subscription.

Adds a new item to an existing subscription.

No existing items will be changed or replaced.

Retrieves the subscription item with the given ID.

Updates the plan or quantity of an item on a current subscription.

Deletes an item from the subscription.

Removing a subscription item from a subscription will not cancel the subscription.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The canonical id type for this object.

The id of the object.

The object’s type, typically represented in wire format as the object property.

Serialize this value into the given Serde serializer. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more