pub enum Expires {
Remove,
Session,
Exp(ExpVal),
}Expand description
The Expires attribute.
Variants§
Implementations§
Source§impl Expires
impl Expires
Sourcepub fn remove_time() -> Self
pub fn remove_time() -> Self
Creates an Expires with a OffsetDateTime one year in the past.
Source§impl Expires
impl Expires
Sourcepub fn remove_chrono() -> Self
pub fn remove_chrono() -> Self
Creates an Expires with a chrono::DateTime one year in the past.
Source§impl Expires
impl Expires
Sourcepub fn remove_jiff() -> Self
pub fn remove_jiff() -> Self
Trait Implementations§
Source§impl From<OffsetDateTime> for Expires
impl From<OffsetDateTime> for Expires
Source§fn from(value: OffsetDateTime) -> Self
fn from(value: OffsetDateTime) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Expires
impl RefUnwindSafe for Expires
impl Send for Expires
impl Sync for Expires
impl Unpin for Expires
impl UnwindSafe for Expires
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