serde_nanos

Trait Serialize

source
pub trait Serialize {
    // Required method
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
       where S: Serializer;
}
Expand description

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

Required Methods§

source

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Serialize for Option<Duration>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Vec<Duration>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

source§

impl Serialize for Duration

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Implementors§