Struct bonsaidb::local::config::ArgonConfiguration [−][src]
#[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
Auto Trait Implementations
impl RefUnwindSafe for ArgonConfiguration
impl Send for ArgonConfiguration
impl Sync for ArgonConfiguration
impl Unpin for ArgonConfiguration
impl UnwindSafe for ArgonConfiguration
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more