pub struct LastLoginMethodConfig {
pub cookie_name: String,
pub max_age: f64,
pub store_in_database: bool,
pub field_name: Option<String>,
}Expand description
Last-login persistence and cookie options.
Fields§
Literal cookie name. This name is not passed through the global cookie prefix resolver.
max_age: f64Cookie lifetime in seconds. Zero expires the cookie; a negative value omits Max-Age.
store_in_database: boolPersist lastLoginMethod on user creation and after session creation commits.
field_name: Option<String>Storage field used by the application’s user model.
Trait Implementations§
Source§impl Clone for LastLoginMethodConfig
impl Clone for LastLoginMethodConfig
Auto Trait Implementations§
impl Freeze for LastLoginMethodConfig
impl RefUnwindSafe for LastLoginMethodConfig
impl Send for LastLoginMethodConfig
impl Sync for LastLoginMethodConfig
impl Unpin for LastLoginMethodConfig
impl UnsafeUnpin for LastLoginMethodConfig
impl UnwindSafe for LastLoginMethodConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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