#[repr(C)]pub struct PhysicalCashUnit { /* private fields */ }
Expand description
Represents a XFS physical cash unit and its parameters.
Implementations§
Source§impl PhysicalCashUnit
impl PhysicalCashUnit
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new PhysicalCashUnit.
Sourcepub const fn name(&self) -> &PcuName
pub const fn name(&self) -> &PcuName
Gets the PcuName.
Name of the physical location in the BNR where this cash unit is installed.
Sourcepub const fn unit_id(&self) -> &UnitId
pub const fn unit_id(&self) -> &UnitId
Gets the UnitId.
Physical cash unit ID. Corresponds to the BNR Module Serial Number (MSN).
Sourcepub fn set_unit_id(&mut self, unit_id: UnitId)
pub fn set_unit_id(&mut self, unit_id: UnitId)
Sets the UnitId.
Sourcepub fn with_unit_id(self, unit_id: UnitId) -> Self
pub fn with_unit_id(self, unit_id: UnitId) -> Self
Builder function that sets the UnitId.
Sourcepub const fn count(&self) -> u32
pub const fn count(&self) -> u32
Gets the count.
Actual count of bills in the physical cash unit.
- Type: One Shot.
- Max: 65535.
- Access:
- Bundler and Recycler Physical Cash Units - Read-Only
- Cashbox and Loader Physical Cash Units - Read-Write (write through configure_cash_unit and update_cash_unit methods).
Sourcepub fn with_count(self, count: u32) -> Self
pub fn with_count(self, count: u32) -> Self
Builder function that sets the count.
Sourcepub const fn threshold(&self) -> Threshold
pub const fn threshold(&self) -> Threshold
Gets the Threshold.
Defines limits to determine threshold_status.
Sourcepub fn set_threshold(&mut self, threshold: Threshold)
pub fn set_threshold(&mut self, threshold: Threshold)
Sets the Threshold.
Sourcepub fn with_threshold(self, threshold: Threshold) -> Self
pub fn with_threshold(self, threshold: Threshold) -> Self
Builder function that sets the Threshold.
Sourcepub fn set_status(&mut self, status: u32)
pub fn set_status(&mut self, status: u32)
Sets the status.
Sourcepub fn with_status(self, status: u32) -> Self
pub fn with_status(self, status: u32) -> Self
Builder function that sets the status.
Sourcepub const fn threshold_status(&self) -> ThresholdStatus
pub const fn threshold_status(&self) -> ThresholdStatus
Gets the ThresholdStatus.
ThresholdStatus of the physical cash unit.
Sourcepub fn set_threshold_status(&mut self, status: ThresholdStatus)
pub fn set_threshold_status(&mut self, status: ThresholdStatus)
Sets the ThresholdStatus.
Sourcepub fn with_threshold_status(self, status: ThresholdStatus) -> Self
pub fn with_threshold_status(self, status: ThresholdStatus) -> Self
Builder function that sets the ThresholdStatus.
Sourcepub const fn threshold_mode(&self) -> ThresholdMode
pub const fn threshold_mode(&self) -> ThresholdMode
Gets the ThresholdMode.
Defines how threshold_status is determined.
Sourcepub fn set_threshold_mode(&mut self, mode: ThresholdMode)
pub fn set_threshold_mode(&mut self, mode: ThresholdMode)
Sets the ThresholdMode.
Sourcepub fn with_threshold_mode(self, mode: ThresholdMode) -> Self
pub fn with_threshold_mode(self, mode: ThresholdMode) -> Self
Builder function that sets the ThresholdMode.
Trait Implementations§
Source§impl Clone for PhysicalCashUnit
impl Clone for PhysicalCashUnit
Source§fn clone(&self) -> PhysicalCashUnit
fn clone(&self) -> PhysicalCashUnit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more