pub struct DurationMs(pub u64);Expand description
A non-negative span in milliseconds.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for DurationMs
impl Clone for DurationMs
impl Copy 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
impl Eq for DurationMs
Source§impl Hash for DurationMs
impl Hash for DurationMs
Source§impl JsonSchema for DurationMs
impl JsonSchema for DurationMs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DurationMs
impl Ord for DurationMs
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum 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
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 UnsafeUnpin 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