pub struct DispenserState {
pub mode: IdMode,
pub sequences: HashMap<String, u32>,
}Expand description
Current state of the dispenser — all counters for a given node.
Fields§
§mode: IdModeThe operating mode
sequences: HashMap<String, u32>Current sequence values per type prefix. The value is the last dispensed number; next will be value + 1.
Implementations§
Trait Implementations§
Source§impl Clone for DispenserState
impl Clone for DispenserState
Source§fn clone(&self) -> DispenserState
fn clone(&self) -> DispenserState
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 DispenserState
impl Debug for DispenserState
Source§impl<'de> Deserialize<'de> for DispenserState
impl<'de> Deserialize<'de> for DispenserState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DispenserState
impl RefUnwindSafe for DispenserState
impl Send for DispenserState
impl Sync for DispenserState
impl Unpin for DispenserState
impl UnsafeUnpin for DispenserState
impl UnwindSafe for DispenserState
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