Struct square_api_client::models::OrderRoundingAdjustment
source · [−]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
sourceimpl Clone for OrderRoundingAdjustment
impl Clone for OrderRoundingAdjustment
sourcefn clone(&self) -> OrderRoundingAdjustment
fn clone(&self) -> OrderRoundingAdjustment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OrderRoundingAdjustment
impl Debug for OrderRoundingAdjustment
sourceimpl Default for OrderRoundingAdjustment
impl Default for OrderRoundingAdjustment
sourcefn default() -> OrderRoundingAdjustment
fn default() -> OrderRoundingAdjustment
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OrderRoundingAdjustment
impl<'de> Deserialize<'de> for OrderRoundingAdjustment
sourcefn 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
sourceimpl PartialEq<OrderRoundingAdjustment> for OrderRoundingAdjustment
impl PartialEq<OrderRoundingAdjustment> for OrderRoundingAdjustment
sourcefn eq(&self, other: &OrderRoundingAdjustment) -> bool
fn eq(&self, other: &OrderRoundingAdjustment) -> bool
sourceimpl Serialize for OrderRoundingAdjustment
impl Serialize for OrderRoundingAdjustment
impl Eq for OrderRoundingAdjustment
impl StructuralEq for OrderRoundingAdjustment
impl StructuralPartialEq for OrderRoundingAdjustment
Auto Trait Implementations
impl RefUnwindSafe for OrderRoundingAdjustment
impl Send for OrderRoundingAdjustment
impl Sync for OrderRoundingAdjustment
impl Unpin for OrderRoundingAdjustment
impl UnwindSafe for OrderRoundingAdjustment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.