serde_nanos

Trait Deserialize

source
pub trait Deserialize<'de>: Sized {
    // Required method
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
       where D: Deserializer<'de>;
}
Expand description

Types that can be deserialized via #[serde(with = "serde_nanos")].

Required Methods§

source

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'de> Deserialize<'de> for Option<Duration>

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

source§

impl<'de> Deserialize<'de> for Vec<Duration>

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

source§

impl<'de> Deserialize<'de> for Duration

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Implementors§