pub struct CashOrder { /* private fields */ }Expand description
Represents a cash order event initiated by the device.
Implementations§
Source§impl CashOrder
impl CashOrder
Sourcepub const fn create(currency: Currency, denomination: Denomination) -> CashOrder
pub const fn create(currency: Currency, denomination: Denomination) -> CashOrder
Creates a new CashOrder from the provided parameters.
Sourcepub fn currency_mut(&mut self) -> &mut Currency
pub fn currency_mut(&mut self) -> &mut Currency
Gets a mutable reference to the Currency.
Sourcepub fn set_currency(&mut self, currency: Currency)
pub fn set_currency(&mut self, currency: Currency)
Sets the Currency.
Sourcepub fn with_currency(self, currency: Currency) -> CashOrder
pub fn with_currency(self, currency: Currency) -> CashOrder
Builder function that sets the Currency.
Sourcepub const fn denomination(&self) -> &Denomination
pub const fn denomination(&self) -> &Denomination
Gets a reference to the Denomination.
Sourcepub fn denomination_mut(&mut self) -> &mut Denomination
pub fn denomination_mut(&mut self) -> &mut Denomination
Gets a mutable reference to the Denomination.
Sourcepub fn set_denomination(&mut self, denomination: Denomination)
pub fn set_denomination(&mut self, denomination: Denomination)
Sets the Denomination.
Sourcepub fn with_denomination(self, denomination: Denomination) -> CashOrder
pub fn with_denomination(self, denomination: Denomination) -> CashOrder
Builder function that sets the Denomination.
Trait Implementations§
Source§impl CallbackArg for CashOrder
impl CallbackArg for CashOrder
Source§impl<'de> Deserialize<'de> for CashOrder
impl<'de> Deserialize<'de> for CashOrder
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CashOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CashOrder, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CashOrder
impl Serialize for CashOrder
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CashOrder
impl StructuralPartialEq for CashOrder
Auto Trait Implementations§
impl Freeze for CashOrder
impl RefUnwindSafe for CashOrder
impl Send for CashOrder
impl Sync for CashOrder
impl Unpin for CashOrder
impl UnwindSafe for CashOrder
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