#[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 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 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
Source§impl Hash for AdjustmentItemType
impl Hash for AdjustmentItemType
Source§impl Ord for AdjustmentItemType
impl Ord for AdjustmentItemType
Source§fn cmp(&self, other: &AdjustmentItemType) -> Ordering
fn cmp(&self, other: &AdjustmentItemType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AdjustmentItemType
impl PartialEq for AdjustmentItemType
Source§impl PartialOrd for AdjustmentItemType
impl PartialOrd for AdjustmentItemType
Source§impl Serialize for AdjustmentItemType
impl Serialize for AdjustmentItemType
impl Eq for AdjustmentItemType
impl StructuralPartialEq for AdjustmentItemType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.