pub enum UserState {
Active,
Blocked,
LdapBlocked,
Deactivated,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
The states a user account can be in.
Variants§
Active
👎Deprecated since 0.1609.0: define deserialization types in client code
The user is active and may perform actions.
Blocked
👎Deprecated since 0.1609.0: define deserialization types in client code
Blocked from logging in.
LdapBlocked
👎Deprecated since 0.1609.0: define deserialization types in client code
Blocked from logging in via LDAP.
Deactivated
👎Deprecated since 0.1609.0: define deserialization types in client code
The user is deactivated until the next login.
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserState
impl<'de> Deserialize<'de> for UserState
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 PartialEq for UserState
impl PartialEq for UserState
impl Copy for UserState
impl Eq for UserState
impl StructuralPartialEq for UserState
Auto Trait Implementations§
impl Freeze for UserState
impl RefUnwindSafe for UserState
impl Send for UserState
impl Sync for UserState
impl Unpin for UserState
impl UnwindSafe for UserState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.