pub struct TwoFactorDatabaseConfig {
pub table_name: String,
pub columns: HashMap<String, String>,
}Expand description
Physical storage policy for the bundled two-factor model.
Fields§
§table_name: String§columns: HashMap<String, String>Canonical snake_case column names mapped to application-owned columns.
Implementations§
Source§impl TwoFactorDatabaseConfig
impl TwoFactorDatabaseConfig
Sourcepub fn migration_statements(&self) -> AuthResult<Vec<String>>
pub fn migration_statements(&self) -> AuthResult<Vec<String>>
DDL used to migrate the bundled factor model to its configured physical layout.
Trait Implementations§
Source§impl Clone for TwoFactorDatabaseConfig
impl Clone for TwoFactorDatabaseConfig
Auto Trait Implementations§
impl Freeze for TwoFactorDatabaseConfig
impl RefUnwindSafe for TwoFactorDatabaseConfig
impl Send for TwoFactorDatabaseConfig
impl Sync for TwoFactorDatabaseConfig
impl Unpin for TwoFactorDatabaseConfig
impl UnsafeUnpin for TwoFactorDatabaseConfig
impl UnwindSafe for TwoFactorDatabaseConfig
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