#[non_exhaustive]pub enum UserStatus {
Inactive,
Active,
SignedOut,
Locked,
Deleted,
}
Expand description
User status.
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.
Inactive
It indicates that it has not been unactivated. This is the default value.
Active
It indicates that the user has been authenticated.
SignedOut
It indicates that the user has logged out.
Locked
It indicates that the user has been locked and cannot be modified.
Deleted
It indicates that the user has been soft deleted.
Trait Implementations§
Source§impl AsRef<str> for UserStatus
impl AsRef<str> for UserStatus
Source§impl Clone for UserStatus
impl Clone for UserStatus
Source§fn clone(&self) -> UserStatus
fn clone(&self) -> UserStatus
Returns a copy 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 UserStatus
impl Debug for UserStatus
Source§impl<'r, DB> Decode<'r, DB> for UserStatus
impl<'r, DB> Decode<'r, DB> for UserStatus
Source§impl Default for UserStatus
impl Default for UserStatus
Source§fn default() -> UserStatus
fn default() -> UserStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserStatus
impl<'de> Deserialize<'de> for UserStatus
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 Display for UserStatus
impl Display for UserStatus
Source§impl<'_derivative_strum> From<&'_derivative_strum UserStatus> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum UserStatus> for &'static str
Source§fn from(x: &'_derivative_strum UserStatus) -> &'static str
fn from(x: &'_derivative_strum UserStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<UserStatus> for &'static str
impl From<UserStatus> for &'static str
Source§fn from(x: UserStatus) -> &'static str
fn from(x: UserStatus) -> &'static str
Converts to this type from the input type.
Source§impl From<UserStatus> for JsonValue
impl From<UserStatus> for JsonValue
Source§fn from(value: UserStatus) -> Self
fn from(value: UserStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for UserStatus
impl FromStr for UserStatus
Source§impl Hash for UserStatus
impl Hash for UserStatus
Source§impl PartialEq for UserStatus
impl PartialEq for UserStatus
Source§impl Serialize for UserStatus
impl Serialize for UserStatus
Source§impl TryFrom<&str> for UserStatus
impl TryFrom<&str> for UserStatus
Source§impl<DB> Type<DB> for UserStatus
impl<DB> Type<DB> for UserStatus
impl Copy for UserStatus
impl Eq for UserStatus
impl StructuralPartialEq for UserStatus
Auto Trait Implementations§
impl Freeze for UserStatus
impl RefUnwindSafe for UserStatus
impl Send for UserStatus
impl Sync for UserStatus
impl Unpin for UserStatus
impl UnwindSafe for UserStatus
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more