pub enum ID {
Anonymous,
User(User),
}Expand description
Represents a unique identifier for a user, their ID. Variants include an anonymous identifier or a specific user.
Variants§
Trait Implementations§
source§impl FromString for ID
impl FromString for ID
Implementing FromString for ID enum to create an ID instance from a string.
source§fn from_string(id: &str) -> ID
fn from_string(id: &str) -> ID
Function to create an instance of the type implementing this trait from a string.
source§impl GetVariants for ID
impl GetVariants for ID
Implementing GetVariants for ID enum to provide the different variant options for ID.
source§fn get_variants() -> Vec<String>
fn get_variants() -> Vec<String>
Function to get the variants of the object.
impl StructuralPartialEq for ID
Auto Trait Implementations§
impl RefUnwindSafe for ID
impl Send for ID
impl Sync for ID
impl Unpin for ID
impl UnwindSafe for ID
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