pub struct CreateSubscriptionBillingCycleAnchorConfig {
pub day_of_month: i64,
pub hour: Option<i64>,
pub minute: Option<i64>,
pub month: Option<i64>,
pub second: Option<i64>,
}
Expand description
Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurrence of the day_of_month at the hour, minute, and second UTC.
Fields§
§day_of_month: i64
The day of the month the anchor should be. Ranges from 1 to 31.
hour: Option<i64>
The hour of the day the anchor should be. Ranges from 0 to 23.
minute: Option<i64>
The minute of the hour the anchor should be. Ranges from 0 to 59.
month: Option<i64>
The month to start full cycle periods. Ranges from 1 to 12.
second: Option<i64>
The second of the minute the anchor should be. Ranges from 0 to 59.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSubscriptionBillingCycleAnchorConfig
impl Clone for CreateSubscriptionBillingCycleAnchorConfig
Source§fn clone(&self) -> CreateSubscriptionBillingCycleAnchorConfig
fn clone(&self) -> CreateSubscriptionBillingCycleAnchorConfig
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 moreimpl Copy for CreateSubscriptionBillingCycleAnchorConfig
Auto Trait Implementations§
impl Freeze for CreateSubscriptionBillingCycleAnchorConfig
impl RefUnwindSafe for CreateSubscriptionBillingCycleAnchorConfig
impl Send for CreateSubscriptionBillingCycleAnchorConfig
impl Sync for CreateSubscriptionBillingCycleAnchorConfig
impl Unpin for CreateSubscriptionBillingCycleAnchorConfig
impl UnwindSafe for CreateSubscriptionBillingCycleAnchorConfig
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