pub enum Expiry {
Unspecified,
Delay(Duration),
DateTime(OffsetDateTime),
}Expand description
An expiry value. Either not specified (the default), a delay relative to the time the call is made, or a specific date time.
Variants§
Unspecified
Unspecified. Will not try to override the Agent’s value, which might itself have its own default value.
Delay(Duration)
A duration that will be added to the system time when the call is made.
DateTime(OffsetDateTime)
A specific date and time to use for the expiry of the request.
Implementations§
Trait Implementations§
Source§impl From<OffsetDateTime> for Expiry
impl From<OffsetDateTime> for Expiry
Source§fn from(dt: OffsetDateTime) -> Self
fn from(dt: OffsetDateTime) -> Self
Converts to this type from the input type.
Source§impl From<SystemTime> for Expiry
impl From<SystemTime> for Expiry
Source§fn from(dt: SystemTime) -> Self
fn from(dt: SystemTime) -> Self
Converts to this type from the input type.
Source§impl Ord for Expiry
impl Ord for Expiry
Source§impl PartialOrd for Expiry
impl PartialOrd for Expiry
impl Eq for Expiry
impl StructuralPartialEq for Expiry
Auto Trait Implementations§
impl Freeze for Expiry
impl RefUnwindSafe for Expiry
impl Send for Expiry
impl Sync for Expiry
impl Unpin for Expiry
impl UnwindSafe for Expiry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.