Struct actix_jwt_session::JwtTtl
source · 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: Duration
Implementations§
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
source§impl PartialEq for JwtTtl
impl PartialEq for JwtTtl
impl Copy for JwtTtl
impl StructuralPartialEq for JwtTtl
Auto Trait Implementations§
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