Enum bonsaidb::core::connection::AuthenticationMethod
source · 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<AuthenticationMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AuthenticationMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AuthenticationMethod
impl Serialize for AuthenticationMethod
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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