pub struct VerificationConfig {
pub disable_cleanup: bool,
pub store_in_database: bool,
pub store_identifier: VerificationIdentifierPolicy,
pub secondary_storage: Option<Arc<dyn CacheAdapter>>,
}Expand description
Initialized identifier, persistence and cleanup policy for verification values.
Fields§
§disable_cleanup: boolKeep globally expired verification rows during lookup. Default: false. An atomic consume still invalidates an expired proof it selects.
store_in_database: boolPersist verification values alongside secondary storage. Without a secondary backend, verification values always use the database.
store_identifier: VerificationIdentifierPolicyGlobal identifier policy, applied after a plugin’s own value codec.
secondary_storage: Option<Arc<dyn CacheAdapter>>Optional shared secondary backend. Single-use values require its atomic
get_and_delete operation. This config does not change session storage.
Trait Implementations§
Source§impl Clone for VerificationConfig
impl Clone for VerificationConfig
Source§impl Debug for VerificationConfig
impl Debug for VerificationConfig
Auto Trait Implementations§
impl !RefUnwindSafe for VerificationConfig
impl !UnwindSafe for VerificationConfig
impl Freeze for VerificationConfig
impl Send for VerificationConfig
impl Sync for VerificationConfig
impl Unpin for VerificationConfig
impl UnsafeUnpin for VerificationConfig
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