Trait serde::ser::Serialize [] [src]

pub trait Serialize {
    fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer;
}

A trait that describes a type that can be serialized by a Serializer.

Required Methods

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

Serializes this value into this serializer.

Implementors