Struct bonsaidb::local::config::ArgonConfiguration
source · #[non_exhaustive]pub struct ArgonConfiguration {
pub hashers: u32,
pub algorithm: Algorithm,
pub params: ArgonParams,
}
Expand description
Password hashing configuration.
BonsaiDb uses argon2
for its password hashing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.hashers: u32
The number of concurrent hashing operations that are allowed to take place.
algorithm: Algorithm
The algorithm variation to use. Most users should select
Algorithm::Argon2id
.
params: ArgonParams
The parameters for each hasher.
Trait Implementations§
source§impl Clone for ArgonConfiguration
impl Clone for ArgonConfiguration
source§fn clone(&self) -> ArgonConfiguration
fn clone(&self) -> ArgonConfiguration
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ArgonConfiguration
impl Send for ArgonConfiguration
impl Sync for ArgonConfiguration
impl Unpin for ArgonConfiguration
impl UnwindSafe for ArgonConfiguration
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