#[non_exhaustive]pub enum AdjustmentItemType {
Full,
Partial,
Tax,
Proration,
}
Expand description
Type of adjustment for this transaction item. tax
adjustments are automatically created by Paddle.
Include amount
when creating a partial
adjustment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
Full total for this transaction item is adjusted.
Partial
Part of this transaction item is adjusted. Include amount
to specify the partial amount adjusted.
Tax
Tax for this transaction item is adjusted. Created automatically by Paddle.
Proration
A prorated amount for this transaction item is adjusted. Created automatically by Paddle in some cases when making changes to a subscription.
Trait Implementations§
Source§impl Clone for AdjustmentItemType
impl Clone for AdjustmentItemType
Source§fn clone(&self) -> AdjustmentItemType
fn clone(&self) -> AdjustmentItemType
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 AdjustmentItemType
impl Debug for AdjustmentItemType
Source§impl<'de> Deserialize<'de> for AdjustmentItemType
impl<'de> Deserialize<'de> for AdjustmentItemType
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 AdjustmentItemType
impl RefUnwindSafe for AdjustmentItemType
impl Send for AdjustmentItemType
impl Sync for AdjustmentItemType
impl Unpin for AdjustmentItemType
impl UnwindSafe for AdjustmentItemType
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