pub enum HashingAlgorithm {
Pbkdf2,
Argon2,
Sha512,
}
Expand description
Hashing algorithms
Variants§
Pbkdf2
PBKDF2 Hashing Algorithm
This is the default hashing algorithm and is the most secure of all supported algorithms.
Argon2
Argon2 Hashing Algorithm
Argon2id v19 + Salt
Sha512
SHA512 + Rounds (100k) Hashing Algorithm
Weakest of all supported algorithms but fastest
Implementations§
Trait Implementations§
Source§impl Clone for HashingAlgorithm
impl Clone for HashingAlgorithm
Source§fn clone(&self) -> HashingAlgorithm
fn clone(&self) -> HashingAlgorithm
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 HashingAlgorithm
impl Debug for HashingAlgorithm
Source§impl Default for HashingAlgorithm
impl Default for HashingAlgorithm
Source§fn default() -> HashingAlgorithm
fn default() -> HashingAlgorithm
Returns the “default value” for a type. Read more
Source§impl Display for HashingAlgorithm
impl Display for HashingAlgorithm
Source§impl TryFrom<&String> for HashingAlgorithm
impl TryFrom<&String> for HashingAlgorithm
Auto Trait Implementations§
impl Freeze for HashingAlgorithm
impl RefUnwindSafe for HashingAlgorithm
impl Send for HashingAlgorithm
impl Sync for HashingAlgorithm
impl Unpin for HashingAlgorithm
impl UnwindSafe for HashingAlgorithm
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request