#[repr(u8)]pub enum RejectCode {
Show 23 variants
AbnormalInsertion = 113,
AbnormalSensor = 114,
ReturnedRemaining = 115,
AbnormalMagnification = 116,
Transportation = 117,
Inhibited = 118,
PhotoPattern1 = 119,
PhotoLevel = 120,
InhibitBeforeEscrow = 121,
Return = 122,
TransportStacker = 123,
TransportFraud = 124,
NoteLength = 125,
PhotoPattern2 = 126,
TrueBillFeature = 127,
ValidateBarcode = 130,
BarcodeDigits = 131,
BarcodeStartBit = 132,
BarcodeStopBit = 133,
DoubleTicket = 136,
TicketWrongSideUp = 139,
TicketLength = 141,
Reserved = 255,
}Expand description
Represents note rejection codes.
Variants§
AbnormalInsertion = 113
Abnormal note insertion.
AbnormalSensor = 114
Abnormal magnetic/UV sensor detected.
ReturnedRemaining = 115
Returned remaining amount from Stacker.
AbnormalMagnification = 116
Abnormal note magnification detected.
Transportation = 117
Tranportation error.
Inhibited = 118
Inhibited note detected.
PhotoPattern1 = 119
Photo pattern (1) error.
PhotoLevel = 120
Photo level error.
InhibitBeforeEscrow = 121
Inhibited note detected before Escrow.
Return = 122
Return requested by host.
TransportStacker = 123
Transport error from the Stacker.
TransportFraud = 124
Transport error, fraud detected.
NoteLength = 125
Invalid note length.
PhotoPattern2 = 126
Photo pattern (2) error.
TrueBillFeature = 127
True Bill Feature enabled.
ValidateBarcode = 130
Validate barcode error.
BarcodeDigits = 131
Invalid barcode digits.
BarcodeStartBit = 132
Invalid/missing barcode start bit.
BarcodeStopBit = 133
Invalid/missing barcode stop bit.
DoubleTicket = 136
Double ticket detected.
TicketWrongSideUp = 139
Ticket inserted wrong side facing up.
TicketLength = 141
Invalid ticket length.
Reserved = 255
Reserved code.
Implementations§
Source§impl RejectCode
impl RejectCode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RejectCode.
Sourcepub const fn from_u8(val: u8) -> Self
pub const fn from_u8(val: u8) -> Self
Infallible function that converts a u8 into a RejectCode.
Sourcepub const fn to_u8(&self) -> u8
pub const fn to_u8(&self) -> u8
Converts a RejectCode into a u8.
Sourcepub const fn into_u8(self) -> u8
pub const fn into_u8(self) -> u8
Converts a RejectCode into a u8.
Sourcepub const fn len() -> usize
pub const fn len() -> usize
Gets the length of the RejectCode.
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Gets whether the RejectCode is empty.
Sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
Gets whether the RejectCode contains a valid variant.
Trait Implementations§
Source§impl Clone for RejectCode
impl Clone for RejectCode
Source§fn clone(&self) -> RejectCode
fn clone(&self) -> RejectCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more