Enum twitch_types::UserType
source · 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 PartialEq<UserType> for UserType
impl PartialEq<UserType> for UserType
source§impl PartialOrd<UserType> for UserType
impl PartialOrd<UserType> for UserType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UserType
impl Eq for UserType
impl StructuralEq for UserType
impl StructuralPartialEq for UserType
Auto Trait Implementations§
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