pub struct SubscriptionWithInclude {
pub subscription: Subscription,
pub next_transaction: Option<NextTransaction>,
pub recurring_transaction_details: Option<SubscriptionTransactionDetailsPreview>,
}Expand description
Represents a subscription entity with related entities included.
Fields§
§subscription: SubscriptionThe subscription entity.
next_transaction: Option<NextTransaction>Preview of the next transaction for this subscription. May include prorated charges that aren’t yet billed and one-time charges. Returned when the include parameter is used with the next_transaction value. null if the subscription is scheduled to cancel or pause.
recurring_transaction_details: Option<SubscriptionTransactionDetailsPreview>Preview of the recurring transaction for this subscription. This is what the customer can expect to be billed when there are no prorated or one-time charges. Returned when the include parameter is used with the recurring_transaction_details value.
Trait Implementations§
Source§impl Clone for SubscriptionWithInclude
impl Clone for SubscriptionWithInclude
Source§fn clone(&self) -> SubscriptionWithInclude
fn clone(&self) -> SubscriptionWithInclude
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 Debug for SubscriptionWithInclude
impl Debug for SubscriptionWithInclude
Source§impl<'de> Deserialize<'de> for SubscriptionWithInclude
impl<'de> Deserialize<'de> for SubscriptionWithInclude
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 SubscriptionWithInclude
impl RefUnwindSafe for SubscriptionWithInclude
impl Send for SubscriptionWithInclude
impl Sync for SubscriptionWithInclude
impl Unpin for SubscriptionWithInclude
impl UnwindSafe for SubscriptionWithInclude
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