pub struct NewSession { /* private fields */ }Expand description
What Internal::create_session_with stores beyond a default session: a different expiry
and plugin columns, written in the same insert.
Implementations§
Source§impl NewSession
impl NewSession
pub fn new() -> Self
Sourcepub fn expires_at(self, expires_at: OffsetDateTime) -> Self
pub fn expires_at(self, expires_at: OffsetDateTime) -> Self
Replaces the expiry remember_me and the session config give.
Trait Implementations§
Source§impl Clone for NewSession
impl Clone for NewSession
Source§impl Debug for NewSession
impl Debug for NewSession
Auto Trait Implementations§
impl Forget for NewSession
impl Freeze for NewSession
impl Move for NewSession
impl RefUnwindSafe for NewSession
impl Send for NewSession
impl Sync for NewSession
impl Unpin for NewSession
impl UnsafeUnpin for NewSession
impl UnwindSafe for NewSession
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