#[non_exhaustive]pub enum UserKind {
Message,
Steer,
Other(String),
}Expand description
user.kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserKind
impl<'de> Deserialize<'de> for UserKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserKind
impl StructuralPartialEq for UserKind
Auto Trait Implementations§
impl Freeze for UserKind
impl RefUnwindSafe for UserKind
impl Send for UserKind
impl Sync for UserKind
impl Unpin for UserKind
impl UnsafeUnpin for UserKind
impl UnwindSafe for UserKind
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