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: DurationImplementations§
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 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 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§impl Serialize for RefreshTtl
impl Serialize for RefreshTtl
impl Copy for RefreshTtl
impl StructuralPartialEq for RefreshTtl
Auto Trait Implementations§
impl Freeze for RefreshTtl
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