Struct stripe::generated::billing::subscription_billing_thresholds::SubscriptionBillingThresholds
source · pub struct SubscriptionBillingThresholds {
pub amount_gte: Option<i64>,
pub reset_billing_cycle_anchor: Option<bool>,
}
Expand description
The resource representing a Stripe “SubscriptionBillingThresholds”.
Fields§
§amount_gte: Option<i64>
Monetary threshold that triggers the subscription to create an invoice.
reset_billing_cycle_anchor: Option<bool>
Indicates if the billing_cycle_anchor
should be reset when a threshold is reached.
If true, billing_cycle_anchor
will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
This value may not be true
if the subscription contains items with plans that have aggregate_usage=last_ever
.
Trait Implementations§
source§impl Clone for SubscriptionBillingThresholds
impl Clone for SubscriptionBillingThresholds
source§fn clone(&self) -> SubscriptionBillingThresholds
fn clone(&self) -> SubscriptionBillingThresholds
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SubscriptionBillingThresholds
impl Default for SubscriptionBillingThresholds
source§fn default() -> SubscriptionBillingThresholds
fn default() -> SubscriptionBillingThresholds
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SubscriptionBillingThresholds
impl<'de> Deserialize<'de> for SubscriptionBillingThresholds
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubscriptionBillingThresholds
impl RefUnwindSafe for SubscriptionBillingThresholds
impl Send for SubscriptionBillingThresholds
impl Sync for SubscriptionBillingThresholds
impl Unpin for SubscriptionBillingThresholds
impl UnwindSafe for SubscriptionBillingThresholds
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
Mutably borrows from an owned value. Read more