pub enum AuthenticationMethod {
Token,
PasswordHash,
}
Expand description
Methods for authentication.
Variants§
Token
Authenticate the user or role using an
AuthenticationToken
.
PasswordHash
Authenticate a user using password hashing (Argon2).
Trait Implementations§
source§impl Action for AuthenticationMethod
impl Action for AuthenticationMethod
source§fn name(&self) -> ActionName
fn name(&self) -> ActionName
The full name of this action.
source§impl Clone for AuthenticationMethod
impl Clone for AuthenticationMethod
source§fn clone(&self) -> AuthenticationMethod
fn clone(&self) -> AuthenticationMethod
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 AuthenticationMethod
impl Debug for AuthenticationMethod
source§impl<'de> Deserialize<'de> for AuthenticationMethod
impl<'de> Deserialize<'de> for AuthenticationMethod
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 Serialize for AuthenticationMethod
impl Serialize for AuthenticationMethod
impl Copy for AuthenticationMethod
Auto Trait Implementations§
impl RefUnwindSafe for AuthenticationMethod
impl Send for AuthenticationMethod
impl Sync for AuthenticationMethod
impl Unpin for AuthenticationMethod
impl UnwindSafe for AuthenticationMethod
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