pub struct SubscriptionTransactionDetailsPreview {
pub tax_rates_used: Vec<TaxRatesUsed>,
pub totals: TransactionTotals,
pub line_items: Vec<SubscriptionTransactionDetailsPreviewItem>,
}
Expand description
Calculated totals for a transaction preview, including discounts, tax, and currency conversion. Considered the source of truth for totals on a transaction preview.
Fields§
§tax_rates_used: Vec<TaxRatesUsed>
List of tax rates applied to this transaction preview.
totals: TransactionTotals
Breakdown of the total for a transaction. These numbers can be negative when dealing with subscription updates that result in credit.
line_items: Vec<SubscriptionTransactionDetailsPreviewItem>
Information about line items for this transaction preview. Different from transaction preview items
as they include totals calculated by Paddle. Considered the source of truth for line item totals.
Trait Implementations§
Source§impl Clone for SubscriptionTransactionDetailsPreview
impl Clone for SubscriptionTransactionDetailsPreview
Source§fn clone(&self) -> SubscriptionTransactionDetailsPreview
fn clone(&self) -> SubscriptionTransactionDetailsPreview
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 SubscriptionTransactionDetailsPreview
impl<'de> Deserialize<'de> for SubscriptionTransactionDetailsPreview
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 SubscriptionTransactionDetailsPreview
impl RefUnwindSafe for SubscriptionTransactionDetailsPreview
impl Send for SubscriptionTransactionDetailsPreview
impl Sync for SubscriptionTransactionDetailsPreview
impl Unpin for SubscriptionTransactionDetailsPreview
impl UnwindSafe for SubscriptionTransactionDetailsPreview
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