pub struct FileAuthConfig {
pub path: String,
pub hash_algorithm: String,
}Expand description
File-based authentication configuration.
hash_algorithm selects the password-hashing algorithm used for new
password writes (create_user, change_password). Existing hashes
continue to verify regardless of this setting (auto-detected by their
PHC prefix). Accepted values: "bcrypt" (default) or "argon2" /
"argon2id".
Fields§
§path: String§hash_algorithm: StringOptional algorithm name; defaults to "bcrypt" when omitted for
backwards compatibility with existing on-disk configurations.
Trait Implementations§
Source§impl Clone for FileAuthConfig
impl Clone for FileAuthConfig
Source§fn clone(&self) -> FileAuthConfig
fn clone(&self) -> FileAuthConfig
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 FileAuthConfig
impl Debug for FileAuthConfig
Source§impl<'de> Deserialize<'de> for FileAuthConfig
impl<'de> Deserialize<'de> for FileAuthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileAuthConfig
impl RefUnwindSafe for FileAuthConfig
impl Send for FileAuthConfig
impl Sync for FileAuthConfig
impl Unpin for FileAuthConfig
impl UnsafeUnpin for FileAuthConfig
impl UnwindSafe for FileAuthConfig
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