pub struct OrderRoundingAdjustment {
pub uid: Option<String>,
pub name: Option<String>,
pub amount_money: Option<Money>,
}
Expand description
A rounding adjustment of the money being returned.
Commonly used to apply cash rounding when the minimum unit of the account is smaller than the lowest physical denomination of the currency.
Fields§
§uid: Option<String>
A unique ID that identifies the rounding adjustment only within this order.
name: Option<String>
The name of the rounding adjustment from the original sale order.
amount_money: Option<Money>
The actual rounding adjustment amount.
Trait Implementations§
Source§impl Clone for OrderRoundingAdjustment
impl Clone for OrderRoundingAdjustment
Source§fn clone(&self) -> OrderRoundingAdjustment
fn clone(&self) -> OrderRoundingAdjustment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OrderRoundingAdjustment
impl Debug for OrderRoundingAdjustment
Source§impl Default for OrderRoundingAdjustment
impl Default for OrderRoundingAdjustment
Source§fn default() -> OrderRoundingAdjustment
fn default() -> OrderRoundingAdjustment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderRoundingAdjustment
impl<'de> Deserialize<'de> for OrderRoundingAdjustment
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 PartialEq for OrderRoundingAdjustment
impl PartialEq for OrderRoundingAdjustment
Source§impl Serialize for OrderRoundingAdjustment
impl Serialize for OrderRoundingAdjustment
impl Eq for OrderRoundingAdjustment
impl StructuralPartialEq for OrderRoundingAdjustment
Auto Trait Implementations§
impl Freeze for OrderRoundingAdjustment
impl RefUnwindSafe for OrderRoundingAdjustment
impl Send for OrderRoundingAdjustment
impl Sync for OrderRoundingAdjustment
impl Unpin for OrderRoundingAdjustment
impl UnwindSafe for OrderRoundingAdjustment
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> 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.