pub enum UserType {
Staff,
Admin,
GlobalMod,
None,
}
Expand description
User types: “staff”, “admin”, “global_mod”, or “”.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserType
impl<'de> Deserialize<'de> for UserType
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
Source§impl Ord for UserType
impl Ord for UserType
Source§impl PartialOrd for UserType
impl PartialOrd for UserType
impl Copy for UserType
impl Eq for UserType
impl StructuralPartialEq for UserType
Auto Trait Implementations§
impl Freeze for UserType
impl RefUnwindSafe for UserType
impl Send for UserType
impl Sync for UserType
impl Unpin for UserType
impl UnwindSafe for UserType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)