pub struct AdjustmentItemInput {
pub item_id: TransactionItemID,
pub type: AdjustmentItemType,
pub amount: Option<String>,
}
Fields§
§item_id: TransactionItemID
Unique Paddle ID for this transaction item, prefixed with txnitm_
. Used when working with adjustments.
type: AdjustmentItemType
Type of adjustment for this transaction item. tax
adjustments are automatically created by Paddle.
Include amount
when creating a partial
adjustment.
amount: Option<String>
Amount adjusted for this transaction item. Required when item type is partial
.
Trait Implementations§
Source§impl Clone for AdjustmentItemInput
impl Clone for AdjustmentItemInput
Source§fn clone(&self) -> AdjustmentItemInput
fn clone(&self) -> AdjustmentItemInput
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 AdjustmentItemInput
impl Debug for AdjustmentItemInput
Source§impl<'de> Deserialize<'de> for AdjustmentItemInput
impl<'de> Deserialize<'de> for AdjustmentItemInput
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 AdjustmentItemInput
impl RefUnwindSafe for AdjustmentItemInput
impl Send for AdjustmentItemInput
impl Sync for AdjustmentItemInput
impl Unpin for AdjustmentItemInput
impl UnwindSafe for AdjustmentItemInput
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