#[repr(C)]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) -> Self
pub const fn create(currency: Currency, denomination: Denomination) -> Self
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) -> Self
pub fn with_currency(self, currency: Currency) -> Self
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) -> Self
pub fn with_denomination(self, denomination: Denomination) -> Self
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<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
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