Struct actix_jwt_session::RefreshTtl
source · pub struct RefreshTtl(pub Duration);
Expand description
This is maximum duration of refresh 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§
source§impl RefreshTtl
impl RefreshTtl
pub fn new(__0: Duration) -> RefreshTtl
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 Clone for RefreshTtl
impl Clone for RefreshTtl
source§fn clone(&self) -> RefreshTtl
fn clone(&self) -> RefreshTtl
Returns a copy 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 RefreshTtl
impl Debug for RefreshTtl
source§impl Deref for RefreshTtl
impl Deref for RefreshTtl
source§impl<'de> Deserialize<'de> for RefreshTtl
impl<'de> Deserialize<'de> for RefreshTtl
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 RefreshTtl
impl PartialEq for RefreshTtl
source§fn eq(&self, other: &RefreshTtl) -> bool
fn eq(&self, other: &RefreshTtl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RefreshTtl
impl Serialize for RefreshTtl
impl Copy for RefreshTtl
impl StructuralPartialEq for RefreshTtl
Auto Trait Implementations§
impl RefUnwindSafe for RefreshTtl
impl Send for RefreshTtl
impl Sync for RefreshTtl
impl Unpin for RefreshTtl
impl UnwindSafe for RefreshTtl
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