pub struct SubscriptionBillingThresholds {
pub amount_gte: Option<i64>,
pub reset_billing_cycle_anchor: Option<bool>,
}
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 duplicate 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 FromValueOpt for SubscriptionBillingThresholds
impl FromValueOpt for SubscriptionBillingThresholds
fn from_value(v: Value) -> Option<Self>
impl Copy for SubscriptionBillingThresholds
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