pub struct ThresholdEmpty(/* private fields */);Expand description
The PCU ThresholdStatus becomes Empty when the bill count is lower or equal to this value.
Implementations§
Source§impl ThresholdEmpty
impl ThresholdEmpty
Sourcepub const fn new() -> ThresholdEmpty
pub const fn new() -> ThresholdEmpty
Creates a new ThresholdEmpty.
Sourcepub const fn create(val: u32) -> ThresholdEmpty
pub const fn create(val: u32) -> ThresholdEmpty
Creates a new ThresholdEmpty from the provided parameter.
Sourcepub const fn inner(&self) -> u32
pub const fn inner(&self) -> u32
Gets the inner representation of ThresholdEmpty.
Sourcepub fn set_inner(&mut self, val: u32)
pub fn set_inner(&mut self, val: u32)
Gets the inner representation of ThresholdEmpty.
Trait Implementations§
Source§impl Clone for ThresholdEmpty
impl Clone for ThresholdEmpty
Source§fn clone(&self) -> ThresholdEmpty
fn clone(&self) -> ThresholdEmpty
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 ThresholdEmpty
impl Debug for ThresholdEmpty
Source§impl Default for ThresholdEmpty
impl Default for ThresholdEmpty
Source§fn default() -> ThresholdEmpty
fn default() -> ThresholdEmpty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThresholdEmpty
impl<'de> Deserialize<'de> for ThresholdEmpty
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThresholdEmpty, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThresholdEmpty, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ThresholdEmpty
impl Display for ThresholdEmpty
Source§impl From<&ThresholdEmpty> for XfsMember
impl From<&ThresholdEmpty> for XfsMember
Source§fn from(val: &ThresholdEmpty) -> XfsMember
fn from(val: &ThresholdEmpty) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ThresholdEmpty> for XfsValue
impl From<&ThresholdEmpty> for XfsValue
Source§fn from(val: &ThresholdEmpty) -> XfsValue
fn from(val: &ThresholdEmpty) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ThresholdEmpty
impl From<&i32> for ThresholdEmpty
Source§fn from(val: &i32) -> ThresholdEmpty
fn from(val: &i32) -> ThresholdEmpty
Converts to this type from the input type.
Source§impl From<&u32> for ThresholdEmpty
impl From<&u32> for ThresholdEmpty
Source§fn from(val: &u32) -> ThresholdEmpty
fn from(val: &u32) -> ThresholdEmpty
Converts to this type from the input type.
Source§impl From<ThresholdEmpty> for XfsMember
impl From<ThresholdEmpty> for XfsMember
Source§fn from(val: ThresholdEmpty) -> XfsMember
fn from(val: ThresholdEmpty) -> XfsMember
Converts to this type from the input type.
Source§impl From<ThresholdEmpty> for XfsValue
impl From<ThresholdEmpty> for XfsValue
Source§fn from(val: ThresholdEmpty) -> XfsValue
fn from(val: ThresholdEmpty) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ThresholdEmpty
impl From<i32> for ThresholdEmpty
Source§fn from(val: i32) -> ThresholdEmpty
fn from(val: i32) -> ThresholdEmpty
Converts to this type from the input type.
Source§impl From<u32> for ThresholdEmpty
impl From<u32> for ThresholdEmpty
Source§fn from(val: u32) -> ThresholdEmpty
fn from(val: u32) -> ThresholdEmpty
Converts to this type from the input type.
Source§impl PartialEq for ThresholdEmpty
impl PartialEq for ThresholdEmpty
Source§impl Serialize for ThresholdEmpty
impl Serialize for ThresholdEmpty
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 ThresholdEmpty
impl TryFrom<&XfsMember> for ThresholdEmpty
Source§impl TryFrom<&XfsValue> for ThresholdEmpty
impl TryFrom<&XfsValue> for ThresholdEmpty
Source§impl TryFrom<XfsMember> for ThresholdEmpty
impl TryFrom<XfsMember> for ThresholdEmpty
Source§impl TryFrom<XfsValue> for ThresholdEmpty
impl TryFrom<XfsValue> for ThresholdEmpty
impl Copy for ThresholdEmpty
impl StructuralPartialEq for ThresholdEmpty
Auto Trait Implementations§
impl Freeze for ThresholdEmpty
impl RefUnwindSafe for ThresholdEmpty
impl Send for ThresholdEmpty
impl Sync for ThresholdEmpty
impl Unpin for ThresholdEmpty
impl UnwindSafe for ThresholdEmpty
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