Struct Capabilities

Source
#[repr(C)]
pub struct Capabilities {
Show 29 fields pub auto_present: AutoPresent, pub cd_type: CdrType, pub euro_art6_capability: EuroArt6Capability, pub trusted_user: TrustedUser, pub max_in_bills: MaxInBills, pub max_out_bills: MaxOutBills, pub shutter_cmd: ShutterCmd, pub retract: Retract, pub safe_door_cmd: SafeDoorCmd, pub cash_box: CashBox, pub refill: Refill, pub dispense: Dispense, pub deposit: Deposit, pub intermediate_stacker: IntermediateStacker, pub bills_taken_sensor: BillsTakenSensor, pub escrow: Escrow, pub escrow_size: EscrowSize, pub detector: Detector, pub default_rollback_position: DefaultRollbackPosition, pub position_capabilities_list: CdrPositionCapabilitiesList, pub self_test_mode: SelfTestMode, pub recognition_sensor_type: RecognitionSensorType, pub anti_fishing_level: AntiFishingLevel, pub allow_usb_front_switch: AllowUsbFrontSwitch, pub reporting_mode: ReportingMode, pub report_usb_consumption: ReportUsbConsumption, pub auto_retract_at_inlet: AutoRetractAtInlet, pub reject_via_outlet: RejectViaOutlet, pub secured_comm_level: SecuredCommLevel,
}
Expand description

Describes the BNR capabilities.

By default, capabilities are read-only properties, the following are writable:

  • auto_present
  • self_test_mode
  • anti_fishing_level
  • allow_usb_front_switch
  • reporting_mode
  • report_usb_consumption
  • auto_retract
  • reject_via_outlet

Fields§

§auto_present: AutoPresent§cd_type: CdrType

Type of device. Always CdrType::ATM for the BNR.

§euro_art6_capability: EuroArt6Capability

Reserved for future use.

§trusted_user: TrustedUser§max_in_bills: MaxInBills§max_out_bills: MaxOutBills§shutter_cmd: ShutterCmd§retract: Retract§safe_door_cmd: SafeDoorCmd§cash_box: CashBox§refill: Refill§dispense: Dispense§deposit: Deposit§intermediate_stacker: IntermediateStacker§bills_taken_sensor: BillsTakenSensor§escrow: Escrow§escrow_size: EscrowSize§detector: Detector§default_rollback_position: DefaultRollbackPosition

Specifies the default output position to rollback cash. Always CdrPosition::Bottom in the BNR.

§position_capabilities_list: CdrPositionCapabilitiesList

Specifies the capabilities of each position supported by the device. Please refer to [CdrPositionCapabilities] for default values.

§self_test_mode: SelfTestMode

Allows to choose when the BNR can perform the self tests. Default value is Auto (recommended).

§recognition_sensor_type: RecognitionSensorType§anti_fishing_level: AntiFishingLevel

Sensitivity level of string detection at Inlet. Default value is Normal.

§allow_usb_front_switch: AllowUsbFrontSwitch§reporting_mode: ReportingMode

Specifies the kind of report generated on failure detection with no bill transported. Default value is Normal.

§report_usb_consumption: ReportUsbConsumption§auto_retract_at_inlet: AutoRetractAtInlet§reject_via_outlet: RejectViaOutlet§secured_comm_level: SecuredCommLevel

Indicates the security level in communication between Host and Bnr. Defaut value is Level1.

Implementations§

Source§

impl Capabilities

Source

pub const fn new() -> Self

Creates a new Capabilities.

Source§

impl Capabilities

Source

pub const fn xfs_name() -> &'static str

Gets the XfsMember name.

Trait Implementations§

Source§

impl Clone for Capabilities

Source§

fn clone(&self) -> Capabilities

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Capabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Capabilities

Source§

fn default() -> Capabilities

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Capabilities

Source§

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 Display for Capabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&Capabilities> for XfsMember

Source§

fn from(val: &Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<&Capabilities> for XfsParam

Source§

fn from(val: &Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<&Capabilities> for XfsStruct

Source§

fn from(val: &Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<&Capabilities> for XfsValue

Source§

fn from(val: &Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<Capabilities> for XfsMember

Source§

fn from(val: Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<Capabilities> for XfsParam

Source§

fn from(val: Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<Capabilities> for XfsStruct

Source§

fn from(val: Capabilities) -> Self

Converts to this type from the input type.
Source§

impl From<Capabilities> for XfsValue

Source§

fn from(val: Capabilities) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Capabilities

Source§

fn eq(&self, other: &Capabilities) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Capabilities

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&XfsMember> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsMember) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&XfsMethodResponse> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsMethodResponse) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&XfsParam> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsParam) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&XfsParams> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsParams) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&XfsStruct> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsStruct) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&XfsValue> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: &XfsValue) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsMember> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsMember) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsMethodResponse> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsMethodResponse) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsParam> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsParam) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsParams> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsParams) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsStruct> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsStruct) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<XfsValue> for Capabilities

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: XfsValue) -> Result<Self>

Performs the conversion.
Source§

impl Copy for Capabilities

Source§

impl StructuralPartialEq for Capabilities

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,