pub struct Threshold { /* private fields */ }Expand description
Structure that defines the levels determining a physical cash unit ThresholdStatus.
Implementations§
Source§impl Threshold
impl Threshold
Sourcepub fn with_full(self, val: u32) -> Threshold
pub fn with_full(self, val: u32) -> Threshold
Builder function that sets the full threshold limit.
Sourcepub fn with_high(self, val: u32) -> Threshold
pub fn with_high(self, val: u32) -> Threshold
Builder function that sets the high threshold limit.
Sourcepub fn with_low(self, val: u32) -> Threshold
pub fn with_low(self, val: u32) -> Threshold
Builder function that sets the low threshold limit.
Sourcepub fn with_empty(self, val: u32) -> Threshold
pub fn with_empty(self, val: u32) -> Threshold
Builder function that sets the empty threshold limit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Threshold
impl<'de> Deserialize<'de> for Threshold
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Threshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Threshold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Threshold
impl Serialize for Threshold
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
impl Copy for Threshold
impl StructuralPartialEq for Threshold
Auto Trait Implementations§
impl Freeze for Threshold
impl RefUnwindSafe for Threshold
impl Send for Threshold
impl Sync for Threshold
impl Unpin for Threshold
impl UnwindSafe for Threshold
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