#[non_exhaustive]pub enum Expiration {
ExpireTime(Box<Timestamp>),
Ttl(Box<Duration>),
}Available on crate feature
session-service only.Expand description
The expiration of the session.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExpireTime(Box<Timestamp>)
Optional. Timestamp of when this session is considered expired. This is always provided on output, regardless of what was sent on input. The minimum value is 24 hours from the time of creation.
Ttl(Box<Duration>)
Optional. Input only. The TTL for this session. The minimum value is 24 hours.
Trait Implementations§
Source§impl Clone for Expiration
impl Clone for Expiration
Source§fn clone(&self) -> Expiration
fn clone(&self) -> Expiration
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 Expiration
impl Debug for Expiration
Source§impl PartialEq for Expiration
impl PartialEq for Expiration
impl StructuralPartialEq for Expiration
Auto Trait Implementations§
impl Freeze for Expiration
impl RefUnwindSafe for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Unpin for Expiration
impl UnsafeUnpin for Expiration
impl UnwindSafe for Expiration
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