pub struct HumanDuration(pub Duration);
Tuple Fields§
§0: Duration
Trait Implementations§
Source§impl Clone for HumanDuration
impl Clone for HumanDuration
Source§fn clone(&self) -> HumanDuration
fn clone(&self) -> HumanDuration
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 HumanDuration
impl Debug for HumanDuration
Source§impl Deref for HumanDuration
impl Deref for HumanDuration
Source§impl DerefMut for HumanDuration
impl DerefMut for HumanDuration
Source§impl<'de> Deserialize<'de> for HumanDuration
impl<'de> Deserialize<'de> for HumanDuration
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 From<TimeDelta> for HumanDuration
impl From<TimeDelta> for HumanDuration
Source§impl FromStr for HumanDuration
impl FromStr for HumanDuration
Source§impl JsonSchema for HumanDuration
impl JsonSchema for HumanDuration
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for HumanDuration
impl Ord for HumanDuration
Source§fn cmp(&self, other: &HumanDuration) -> Ordering
fn cmp(&self, other: &HumanDuration) -> 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 HumanDuration
impl PartialEq for HumanDuration
Source§impl PartialOrd for HumanDuration
impl PartialOrd for HumanDuration
Source§impl Serialize for HumanDuration
impl Serialize for HumanDuration
impl Copy for HumanDuration
impl Eq for HumanDuration
impl StructuralPartialEq for HumanDuration
Auto Trait Implementations§
impl Freeze for HumanDuration
impl RefUnwindSafe for HumanDuration
impl Send for HumanDuration
impl Sync for HumanDuration
impl Unpin for HumanDuration
impl UnwindSafe for HumanDuration
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