pub struct AutoPresent(/* private fields */);Expand description
This specifies whether cash will be automatically presented to the user on execution of a dispense (autoPresent set to TRUE), or whether the cash will only be transported to the Bundler.
In the latter case, a present command will need to be issued following the dispense command.
Default value is FALSE.
Implementations§
Source§impl AutoPresent
impl AutoPresent
Sourcepub const fn new() -> AutoPresent
pub const fn new() -> AutoPresent
Creates a new AutoPresent.
Sourcepub const fn create(val: bool) -> AutoPresent
pub const fn create(val: bool) -> AutoPresent
Creates a new AutoPresent from the provided parameter.
Sourcepub fn into_inner(self) -> bool
pub fn into_inner(self) -> bool
Converts into the inner representation of AutoPresent.
Trait Implementations§
Source§impl Clone for AutoPresent
impl Clone for AutoPresent
Source§fn clone(&self) -> AutoPresent
fn clone(&self) -> AutoPresent
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 AutoPresent
impl Debug for AutoPresent
Source§impl Default for AutoPresent
impl Default for AutoPresent
Source§fn default() -> AutoPresent
fn default() -> AutoPresent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoPresent
impl<'de> Deserialize<'de> for AutoPresent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoPresent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AutoPresent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AutoPresent
impl Display for AutoPresent
Source§impl From<&AutoPresent> for XfsMember
impl From<&AutoPresent> for XfsMember
Source§fn from(val: &AutoPresent) -> XfsMember
fn from(val: &AutoPresent) -> XfsMember
Converts to this type from the input type.
Source§impl From<&AutoPresent> for XfsValue
impl From<&AutoPresent> for XfsValue
Source§fn from(val: &AutoPresent) -> XfsValue
fn from(val: &AutoPresent) -> XfsValue
Converts to this type from the input type.
Source§impl From<&bool> for AutoPresent
impl From<&bool> for AutoPresent
Source§fn from(val: &bool) -> AutoPresent
fn from(val: &bool) -> AutoPresent
Converts to this type from the input type.
Source§impl From<&u8> for AutoPresent
impl From<&u8> for AutoPresent
Source§fn from(val: &u8) -> AutoPresent
fn from(val: &u8) -> AutoPresent
Converts to this type from the input type.
Source§impl From<AutoPresent> for XfsMember
impl From<AutoPresent> for XfsMember
Source§fn from(val: AutoPresent) -> XfsMember
fn from(val: AutoPresent) -> XfsMember
Converts to this type from the input type.
Source§impl From<AutoPresent> for XfsValue
impl From<AutoPresent> for XfsValue
Source§fn from(val: AutoPresent) -> XfsValue
fn from(val: AutoPresent) -> XfsValue
Converts to this type from the input type.
Source§impl From<bool> for AutoPresent
impl From<bool> for AutoPresent
Source§fn from(val: bool) -> AutoPresent
fn from(val: bool) -> AutoPresent
Converts to this type from the input type.
Source§impl From<u8> for AutoPresent
impl From<u8> for AutoPresent
Source§fn from(val: u8) -> AutoPresent
fn from(val: u8) -> AutoPresent
Converts to this type from the input type.
Source§impl PartialEq for AutoPresent
impl PartialEq for AutoPresent
Source§impl Serialize for AutoPresent
impl Serialize for AutoPresent
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 AutoPresent
impl TryFrom<&XfsMember> for AutoPresent
Source§impl TryFrom<&XfsValue> for AutoPresent
impl TryFrom<&XfsValue> for AutoPresent
Source§impl TryFrom<XfsMember> for AutoPresent
impl TryFrom<XfsMember> for AutoPresent
Source§impl TryFrom<XfsValue> for AutoPresent
impl TryFrom<XfsValue> for AutoPresent
impl Copy for AutoPresent
impl StructuralPartialEq for AutoPresent
Auto Trait Implementations§
impl Freeze for AutoPresent
impl RefUnwindSafe for AutoPresent
impl Send for AutoPresent
impl Sync for AutoPresent
impl Unpin for AutoPresent
impl UnwindSafe for AutoPresent
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