Struct serde_with::DurationMicroSeconds 
source · pub struct DurationMicroSeconds<FORMAT: Format = u64, STRICTNESS: Strictness = Strict>(/* private fields */);Expand description
Equivalent to DurationSeconds with micro-seconds as base unit.
This type is equivalent to DurationSeconds except that each unit represents 1 micro-second instead of 1 second for DurationSeconds.
Trait Implementations§
source§impl<FORMAT: Clone + Format, STRICTNESS: Clone + Strictness> Clone for DurationMicroSeconds<FORMAT, STRICTNESS>
 
impl<FORMAT: Clone + Format, STRICTNESS: Clone + Strictness> Clone for DurationMicroSeconds<FORMAT, STRICTNESS>
source§fn clone(&self) -> DurationMicroSeconds<FORMAT, STRICTNESS>
 
fn clone(&self) -> DurationMicroSeconds<FORMAT, STRICTNESS>
Returns a copy 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<FORMAT: Debug + Format, STRICTNESS: Debug + Strictness> Debug for DurationMicroSeconds<FORMAT, STRICTNESS>
 
impl<FORMAT: Debug + Format, STRICTNESS: Debug + Strictness> Debug for DurationMicroSeconds<FORMAT, STRICTNESS>
source§impl<FORMAT: Default + Format, STRICTNESS: Default + Strictness> Default for DurationMicroSeconds<FORMAT, STRICTNESS>
 
impl<FORMAT: Default + Format, STRICTNESS: Default + Strictness> Default for DurationMicroSeconds<FORMAT, STRICTNESS>
source§fn default() -> DurationMicroSeconds<FORMAT, STRICTNESS>
 
fn default() -> DurationMicroSeconds<FORMAT, STRICTNESS>
Returns the “default value” for a type. Read more
source§impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<u64, Strict>
 
impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<u64, Strict>
source§fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl<'de, FORMAT> DeserializeAs<'de, Duration> for DurationMicroSeconds<FORMAT, Flexible>where
    FORMAT: Format,
 
impl<'de, FORMAT> DeserializeAs<'de, Duration> for DurationMicroSeconds<FORMAT, Flexible>where FORMAT: Format,
source§fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<String, Strict>
 
impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<String, Strict>
source§fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<f64, Strict>
 
impl<'de> DeserializeAs<'de, Duration> for DurationMicroSeconds<f64, Strict>
source§fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize_as<D>(deserializer: D) -> Result<Duration, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<String, STRICTNESS>where
    STRICTNESS: Strictness,
 
impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<String, STRICTNESS>where STRICTNESS: Strictness,
source§fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where
    S: Serializer,
 
fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize this value into the given Serde serializer.
source§impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<f64, STRICTNESS>where
    STRICTNESS: Strictness,
 
impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<f64, STRICTNESS>where STRICTNESS: Strictness,
source§fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where
    S: Serializer,
 
fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize this value into the given Serde serializer.
source§impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<u64, STRICTNESS>where
    STRICTNESS: Strictness,
 
impl<STRICTNESS> SerializeAs<Duration> for DurationMicroSeconds<u64, STRICTNESS>where STRICTNESS: Strictness,
source§fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where
    S: Serializer,
 
fn serialize_as<S>(source: &Duration, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize this value into the given Serde serializer.
impl<FORMAT: Copy + Format, STRICTNESS: Copy + Strictness> Copy for DurationMicroSeconds<FORMAT, STRICTNESS>
Auto Trait Implementations§
impl<FORMAT, STRICTNESS> RefUnwindSafe for DurationMicroSeconds<FORMAT, STRICTNESS>where FORMAT: RefUnwindSafe, STRICTNESS: RefUnwindSafe,
impl<FORMAT, STRICTNESS> Send for DurationMicroSeconds<FORMAT, STRICTNESS>where FORMAT: Send, STRICTNESS: Send,
impl<FORMAT, STRICTNESS> Sync for DurationMicroSeconds<FORMAT, STRICTNESS>where FORMAT: Sync, STRICTNESS: Sync,
impl<FORMAT, STRICTNESS> Unpin for DurationMicroSeconds<FORMAT, STRICTNESS>where FORMAT: Unpin, STRICTNESS: Unpin,
impl<FORMAT, STRICTNESS> UnwindSafe for DurationMicroSeconds<FORMAT, STRICTNESS>where FORMAT: UnwindSafe, STRICTNESS: UnwindSafe,
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