pub struct CreateCheckoutSessionLineItemsPriceDataRecurring {
pub interval: CreateCheckoutSessionLineItemsPriceDataRecurringInterval,
pub interval_count: Option<u64>,
}Expand description
The recurring components of a price such as interval and interval_count.
Fields§
§interval: CreateCheckoutSessionLineItemsPriceDataRecurringIntervalSpecifies billing frequency. Either day, week, month or year.
interval_count: Option<u64>The number of intervals between subscription billings.
For example, interval=month and interval_count=3 bills every 3 months.
Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
Implementations§
Source§impl CreateCheckoutSessionLineItemsPriceDataRecurring
impl CreateCheckoutSessionLineItemsPriceDataRecurring
pub fn new( interval: impl Into<CreateCheckoutSessionLineItemsPriceDataRecurringInterval>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionLineItemsPriceDataRecurring
impl Clone for CreateCheckoutSessionLineItemsPriceDataRecurring
Source§fn clone(&self) -> CreateCheckoutSessionLineItemsPriceDataRecurring
fn clone(&self) -> CreateCheckoutSessionLineItemsPriceDataRecurring
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionLineItemsPriceDataRecurring
impl StructuralPartialEq for CreateCheckoutSessionLineItemsPriceDataRecurring
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionLineItemsPriceDataRecurring
impl RefUnwindSafe for CreateCheckoutSessionLineItemsPriceDataRecurring
impl Send for CreateCheckoutSessionLineItemsPriceDataRecurring
impl Sync for CreateCheckoutSessionLineItemsPriceDataRecurring
impl Unpin for CreateCheckoutSessionLineItemsPriceDataRecurring
impl UnsafeUnpin for CreateCheckoutSessionLineItemsPriceDataRecurring
impl UnwindSafe for CreateCheckoutSessionLineItemsPriceDataRecurring
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