pub struct TenderCashDetails {
pub buyer_tendered_money: Option<Money>,
pub change_back_money: Option<Money>,
}
Expand description
Represents the details of a tender with type
CASH
.
Fields§
§buyer_tendered_money: Option<Money>
The total amount of cash provided by the buyer, before change is given.
change_back_money: Option<Money>
The amount of change returned to the buyer.
Trait Implementations§
Source§impl Clone for TenderCashDetails
impl Clone for TenderCashDetails
Source§fn clone(&self) -> TenderCashDetails
fn clone(&self) -> TenderCashDetails
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 TenderCashDetails
impl Debug for TenderCashDetails
Source§impl<'de> Deserialize<'de> for TenderCashDetails
impl<'de> Deserialize<'de> for TenderCashDetails
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 TenderCashDetails
impl PartialEq for TenderCashDetails
Source§impl Serialize for TenderCashDetails
impl Serialize for TenderCashDetails
impl Eq for TenderCashDetails
impl StructuralPartialEq for TenderCashDetails
Auto Trait Implementations§
impl Freeze for TenderCashDetails
impl RefUnwindSafe for TenderCashDetails
impl Send for TenderCashDetails
impl Sync for TenderCashDetails
impl Unpin for TenderCashDetails
impl UnwindSafe for TenderCashDetails
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.