pub struct DurationMs(i64);Expand description
Duration in milliseconds for TTL and timeout values.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Clone for DurationMs
impl Clone for DurationMs
Source§fn clone(&self) -> DurationMs
fn clone(&self) -> DurationMs
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 ComposeSchema for DurationMs
impl ComposeSchema for DurationMs
Source§impl Debug for DurationMs
impl Debug for DurationMs
Source§impl<'de> Deserialize<'de> for DurationMs
impl<'de> Deserialize<'de> for DurationMs
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 Display for DurationMs
impl Display for DurationMs
Source§impl From<DurationMs> for i64
impl From<DurationMs> for i64
Source§fn from(d: DurationMs) -> Self
fn from(d: DurationMs) -> Self
Converts to this type from the input type.
Source§impl From<i64> for DurationMs
impl From<i64> for DurationMs
Source§impl Hash for DurationMs
impl Hash for DurationMs
Source§impl Ord for DurationMs
impl Ord for DurationMs
Source§fn cmp(&self, other: &DurationMs) -> Ordering
fn cmp(&self, other: &DurationMs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DurationMs
impl PartialEq for DurationMs
Source§impl PartialOrd for DurationMs
impl PartialOrd for DurationMs
Source§impl Serialize for DurationMs
impl Serialize for DurationMs
Source§impl ToSchema for DurationMs
impl ToSchema for DurationMs
impl Copy for DurationMs
impl Eq for DurationMs
impl StructuralPartialEq for DurationMs
Auto Trait Implementations§
impl Freeze for DurationMs
impl RefUnwindSafe for DurationMs
impl Send for DurationMs
impl Sync for DurationMs
impl Unpin for DurationMs
impl UnwindSafe for DurationMs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.