pub struct FileBackendConfig {
pub path: String,
pub hash_algorithm: HashAlgorithm,
}Expand description
Configuration for the file-based authentication backend.
Fields§
§path: StringPath to the passwd file.
hash_algorithm: HashAlgorithmPassword-hashing algorithm used for new password writes.
Existing hashes (whichever algorithm produced them) continue to verify regardless of this setting. Defaults to bcrypt for backwards compatibility with deployments that pre-date argon2 support.
Trait Implementations§
Source§impl Clone for FileBackendConfig
impl Clone for FileBackendConfig
Source§fn clone(&self) -> FileBackendConfig
fn clone(&self) -> FileBackendConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileBackendConfig
impl Debug for FileBackendConfig
Source§impl Default for FileBackendConfig
impl Default for FileBackendConfig
Source§fn default() -> FileBackendConfig
fn default() -> FileBackendConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileBackendConfig
impl RefUnwindSafe for FileBackendConfig
impl Send for FileBackendConfig
impl Sync for FileBackendConfig
impl Unpin for FileBackendConfig
impl UnsafeUnpin for FileBackendConfig
impl UnwindSafe for FileBackendConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more