pub struct SubscriptionPreviewUpdateSummary {
pub credit: Money,
pub charge: Money,
pub result: UpdateSummaryResult,
}
Expand description
Impact of this subscription change. Includes whether the change results in a charge or credit, and totals for prorated amounts.
Fields§
§credit: Money
A base representation of monetary value unformatted in the lowest denomination with currency code.
charge: Money
A base representation of monetary value unformatted in the lowest denomination with currency code.
result: UpdateSummaryResult
Details of the result of credits and charges. Where the total of any credit adjustments is greater than the total charge, the result is a prorated credit; otherwise, the result is a prorated charge.
Trait Implementations§
Source§impl Clone for SubscriptionPreviewUpdateSummary
impl Clone for SubscriptionPreviewUpdateSummary
Source§fn clone(&self) -> SubscriptionPreviewUpdateSummary
fn clone(&self) -> SubscriptionPreviewUpdateSummary
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<'de> Deserialize<'de> for SubscriptionPreviewUpdateSummary
impl<'de> Deserialize<'de> for SubscriptionPreviewUpdateSummary
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 SubscriptionPreviewUpdateSummary
impl RefUnwindSafe for SubscriptionPreviewUpdateSummary
impl Send for SubscriptionPreviewUpdateSummary
impl Sync for SubscriptionPreviewUpdateSummary
impl Unpin for SubscriptionPreviewUpdateSummary
impl UnwindSafe for SubscriptionPreviewUpdateSummary
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