pub struct TransactionDetailsPreview {
pub tax_rates_used: TaxRatesUsed,
pub totals: TransactionTotals,
pub line_items: Vec<TransactionLineItemPreview>,
}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: TaxRatesUsedList of tax rates applied to this transaction preview.
totals: TransactionTotalsBreakdown of the total for a transaction. These numbers can be negative when dealing with subscription updates that result in credit.
line_items: Vec<TransactionLineItemPreview>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 TransactionDetailsPreview
impl Clone for TransactionDetailsPreview
Source§fn clone(&self) -> TransactionDetailsPreview
fn clone(&self) -> TransactionDetailsPreview
Returns a copy 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 TransactionDetailsPreview
impl Debug for TransactionDetailsPreview
Source§impl<'de> Deserialize<'de> for TransactionDetailsPreview
impl<'de> Deserialize<'de> for TransactionDetailsPreview
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 TransactionDetailsPreview
impl RefUnwindSafe for TransactionDetailsPreview
impl Send for TransactionDetailsPreview
impl Sync for TransactionDetailsPreview
impl Unpin for TransactionDetailsPreview
impl UnwindSafe for TransactionDetailsPreview
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