pub enum SessionExpiry {
DateTime(DateTime<Utc>),
Never,
}
Expand description
The expiry of a session. Either a given date and time, or never.
Variants§
DateTime(DateTime<Utc>)
The session expires at the given date and time.
Never
The session never expires, unless it is explicitly deleted.
Trait Implementations§
Source§impl Clone for SessionExpiry
impl Clone for SessionExpiry
Source§fn clone(&self) -> SessionExpiry
fn clone(&self) -> SessionExpiry
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionExpiry
impl Debug for SessionExpiry
Source§impl Hash for SessionExpiry
impl Hash for SessionExpiry
Source§impl Ord for SessionExpiry
impl Ord for SessionExpiry
Source§fn cmp(&self, other: &SessionExpiry) -> Ordering
fn cmp(&self, other: &SessionExpiry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SessionExpiry
impl PartialEq for SessionExpiry
Source§impl PartialOrd for SessionExpiry
impl PartialOrd for SessionExpiry
impl Copy for SessionExpiry
impl Eq for SessionExpiry
impl StructuralPartialEq for SessionExpiry
Auto Trait Implementations§
impl Freeze for SessionExpiry
impl RefUnwindSafe for SessionExpiry
impl Send for SessionExpiry
impl Sync for SessionExpiry
impl Unpin for SessionExpiry
impl UnwindSafe for SessionExpiry
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