#[non_exhaustive]pub struct VaultConfig {
pub key_normalization: bool,
pub max_failures_before_lockout: u32,
pub failure_window: Duration,
}Expand description
Vault configuration.
Concrete fields are added in later phases as each layer comes online.
Marked #[non_exhaustive] so new fields are additive.
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.key_normalization: boolIf true, raw key material is BLAKE3-normalized to 32 bytes before
fragmentation. Default is true.
max_failures_before_lockout: u32Failures (per key) within the configured failure_window
required to trigger vault lockout. 0 disables threshold
lockout entirely — failures still flow to the configured monitor
but never lock the vault out. Default: 0 (disabled).
failure_window: DurationSliding window for the failure counter. Failures older than this fall off the counter for a given key. Default: 60 seconds.
Implementations§
Source§impl VaultConfig
impl VaultConfig
Trait Implementations§
Source§impl Clone for VaultConfig
impl Clone for VaultConfig
Source§fn clone(&self) -> VaultConfig
fn clone(&self) -> VaultConfig
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 VaultConfig
impl Debug for VaultConfig
Auto Trait Implementations§
impl Freeze for VaultConfig
impl RefUnwindSafe for VaultConfig
impl Send for VaultConfig
impl Sync for VaultConfig
impl Unpin for VaultConfig
impl UnsafeUnpin for VaultConfig
impl UnwindSafe for VaultConfig
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