Trait serializers::Serializer[][src]

pub trait Serializer<T> {
    fn serialize_into(&self, value: &T, j: &mut Builder);
}

The trait you implement in order to make a serializer. The key-value pairs will be gathered in the Builder and turned into a JSON string by ToJson.

Required Methods

Add key-value pairs to the builder for the given object.

You shouldn't have to call this method yourself. Instead you should go through ToJson.

Implementors