pub struct TimeToLive {
pub time_unit: Option<String>,
pub time_to_live: Option<u64>,
pub unlimited: bool,
}Expand description
How long an expectation remains active.
Fields§
§time_unit: Option<String>§time_to_live: Option<u64>§unlimited: boolImplementations§
Trait Implementations§
Source§impl Clone for TimeToLive
impl Clone for TimeToLive
Source§fn clone(&self) -> TimeToLive
fn clone(&self) -> TimeToLive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimeToLive
impl Debug for TimeToLive
Source§impl<'de> Deserialize<'de> for TimeToLive
impl<'de> Deserialize<'de> for TimeToLive
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 TimeToLive
impl PartialEq for TimeToLive
Source§fn eq(&self, other: &TimeToLive) -> bool
fn eq(&self, other: &TimeToLive) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TimeToLive
impl Serialize for TimeToLive
impl StructuralPartialEq for TimeToLive
Auto Trait Implementations§
impl Freeze for TimeToLive
impl RefUnwindSafe for TimeToLive
impl Send for TimeToLive
impl Sync for TimeToLive
impl Unpin for TimeToLive
impl UnsafeUnpin for TimeToLive
impl UnwindSafe for TimeToLive
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