pub struct AdjustmentPreview {
pub transaction_id: TransactionID,
pub items: Vec<AdjustmentItem>,
pub totals: AdjustmentTotals,
}
Expand description
Represents an adjustment entity when previewing adjustments.
Fields§
§transaction_id: TransactionID
Unique Paddle ID for this transaction entity, prefixed with txn_
.
items: Vec<AdjustmentItem>
List of transaction items that this adjustment is for.
totals: AdjustmentTotals
Breakdown of the total for an adjustment.
Trait Implementations§
Source§impl Clone for AdjustmentPreview
impl Clone for AdjustmentPreview
Source§fn clone(&self) -> AdjustmentPreview
fn clone(&self) -> AdjustmentPreview
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 AdjustmentPreview
impl Debug for AdjustmentPreview
Source§impl<'de> Deserialize<'de> for AdjustmentPreview
impl<'de> Deserialize<'de> for AdjustmentPreview
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 AdjustmentPreview
impl RefUnwindSafe for AdjustmentPreview
impl Send for AdjustmentPreview
impl Sync for AdjustmentPreview
impl Unpin for AdjustmentPreview
impl UnwindSafe for AdjustmentPreview
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