pub struct TransactionCommitmentInfo {
pub billing_period_number: Option<i32>,
pub commitment_expires_date: Option<DateTime<Utc>>,
pub commitment_price: Option<i64>,
pub total_billing_periods: Option<i32>,
}Expand description
Information about a subscription commitment.
Fields§
§billing_period_number: Option<i32>The number of the billing period when the commitment expires.
commitment_expires_date: Option<DateTime<Utc>>The UNIX time, in milliseconds, when the commitment expires.
commitment_price: Option<i64>The price of the subscription after the commitment period ends.
total_billing_periods: Option<i32>The total number of billing periods in the commitment.
Implementations§
Source§impl TransactionCommitmentInfo
impl TransactionCommitmentInfo
Sourcepub fn validate(&self) -> Result<(), TransactionCommitmentInfoValidationError>
pub fn validate(&self) -> Result<(), TransactionCommitmentInfoValidationError>
Validates billing_period_number, the only field Apple’s library validates.
§Errors
Returns TransactionCommitmentInfoValidationError::BillingPeriodNumberOutOfRange
when billing_period_number is present and outside 1..=12. A None value is
valid, matching Swift, which skips validation when the field is absent.
Trait Implementations§
Source§impl Clone for TransactionCommitmentInfo
impl Clone for TransactionCommitmentInfo
Source§fn clone(&self) -> TransactionCommitmentInfo
fn clone(&self) -> TransactionCommitmentInfo
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 moreSource§impl Debug for TransactionCommitmentInfo
impl Debug for TransactionCommitmentInfo
Source§impl<'de> Deserialize<'de> for TransactionCommitmentInfo
impl<'de> Deserialize<'de> for TransactionCommitmentInfo
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
Source§impl Hash for TransactionCommitmentInfo
impl Hash for TransactionCommitmentInfo
Auto Trait Implementations§
impl Freeze for TransactionCommitmentInfo
impl RefUnwindSafe for TransactionCommitmentInfo
impl Send for TransactionCommitmentInfo
impl Sync for TransactionCommitmentInfo
impl Unpin for TransactionCommitmentInfo
impl UnsafeUnpin for TransactionCommitmentInfo
impl UnwindSafe for TransactionCommitmentInfo
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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