pub struct MaxInBills(/* private fields */);Expand description
Maximum number of bills to be accepted by one command. Allways 1 for the BNR.
Implementations§
Source§impl MaxInBills
impl MaxInBills
Sourcepub const fn new() -> MaxInBills
pub const fn new() -> MaxInBills
Creates a new MaxInBills.
Sourcepub const fn create(val: u32) -> MaxInBills
pub const fn create(val: u32) -> MaxInBills
Creates a new MaxInBills from the provided parameter.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of MaxInBills.
Trait Implementations§
Source§impl Clone for MaxInBills
impl Clone for MaxInBills
Source§fn clone(&self) -> MaxInBills
fn clone(&self) -> MaxInBills
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaxInBills
impl Debug for MaxInBills
Source§impl Default for MaxInBills
impl Default for MaxInBills
Source§fn default() -> MaxInBills
fn default() -> MaxInBills
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaxInBills
impl<'de> Deserialize<'de> for MaxInBills
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MaxInBills, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MaxInBills, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MaxInBills
impl Display for MaxInBills
Source§impl From<&MaxInBills> for XfsMember
impl From<&MaxInBills> for XfsMember
Source§fn from(val: &MaxInBills) -> XfsMember
fn from(val: &MaxInBills) -> XfsMember
Converts to this type from the input type.
Source§impl From<&MaxInBills> for XfsValue
impl From<&MaxInBills> for XfsValue
Source§fn from(val: &MaxInBills) -> XfsValue
fn from(val: &MaxInBills) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for MaxInBills
impl From<&i32> for MaxInBills
Source§fn from(val: &i32) -> MaxInBills
fn from(val: &i32) -> MaxInBills
Converts to this type from the input type.
Source§impl From<&u32> for MaxInBills
impl From<&u32> for MaxInBills
Source§fn from(val: &u32) -> MaxInBills
fn from(val: &u32) -> MaxInBills
Converts to this type from the input type.
Source§impl From<MaxInBills> for XfsMember
impl From<MaxInBills> for XfsMember
Source§fn from(val: MaxInBills) -> XfsMember
fn from(val: MaxInBills) -> XfsMember
Converts to this type from the input type.
Source§impl From<MaxInBills> for XfsValue
impl From<MaxInBills> for XfsValue
Source§fn from(val: MaxInBills) -> XfsValue
fn from(val: MaxInBills) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for MaxInBills
impl From<i32> for MaxInBills
Source§fn from(val: i32) -> MaxInBills
fn from(val: i32) -> MaxInBills
Converts to this type from the input type.
Source§impl From<u32> for MaxInBills
impl From<u32> for MaxInBills
Source§fn from(val: u32) -> MaxInBills
fn from(val: u32) -> MaxInBills
Converts to this type from the input type.
Source§impl PartialEq for MaxInBills
impl PartialEq for MaxInBills
Source§impl Serialize for MaxInBills
impl Serialize for MaxInBills
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
Source§impl TryFrom<&XfsMember> for MaxInBills
impl TryFrom<&XfsMember> for MaxInBills
Source§impl TryFrom<&XfsValue> for MaxInBills
impl TryFrom<&XfsValue> for MaxInBills
Source§impl TryFrom<XfsMember> for MaxInBills
impl TryFrom<XfsMember> for MaxInBills
Source§impl TryFrom<XfsValue> for MaxInBills
impl TryFrom<XfsValue> for MaxInBills
impl Copy for MaxInBills
impl Eq for MaxInBills
impl StructuralPartialEq for MaxInBills
Auto Trait Implementations§
impl Freeze for MaxInBills
impl RefUnwindSafe for MaxInBills
impl Send for MaxInBills
impl Sync for MaxInBills
impl Unpin for MaxInBills
impl UnwindSafe for MaxInBills
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