Struct serializers::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

The struct responsible for gathering keys and values for the JSON.

This is the struct you interact with through the serialize_into method on the Serializer trait.

Implementations

Add a single key-value pair to the JSON.

Add an object to the JSON. The associated value will be serialized using the given serializer.

Add an array to the JSON. Each item in the iterable will be serialized using the given serializer.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.