pub struct JwtTtl(pub Duration);Expand description
This is maximum duration of json web token after which token will be invalid and depends on implementation removed.
This value should never be lower than 1 second since some implementations don’t accept values lower than 1s.
Tuple Fields§
§0: DurationImplementations§
Methods from Deref<Target = Duration>§
pub const ZERO: Duration
pub const NANOSECOND: Duration
pub const MICROSECOND: Duration
pub const MILLISECOND: Duration
pub const SECOND: Duration
pub const MINUTE: Duration
pub const HOUR: Duration
pub const DAY: Duration
pub const WEEK: Duration
pub const MIN: Duration
pub const MAX: Duration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwtTtl
impl<'de> Deserialize<'de> for JwtTtl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for JwtTtl
impl StructuralPartialEq for JwtTtl
Auto Trait Implementations§
impl Freeze for JwtTtl
impl RefUnwindSafe for JwtTtl
impl Send for JwtTtl
impl Sync for JwtTtl
impl Unpin for JwtTtl
impl UnwindSafe for JwtTtl
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