[][src]Struct mongodb::Encoder

pub struct Encoder;

Serde Encoder

Methods

impl Encoder[src]

pub fn new() -> Encoder[src]

Construct a new Serializer.

Trait Implementations

impl Serializer for Encoder[src]

type Ok = Bson

The output type produced by this Serializer during successful serialization. Most serializers that produce text or binary output should set Ok = () and serialize into an [io::Write] or buffer contained within the Serializer instance. Serializers that build in-memory data structures may be simplified by using Ok to propagate the data structure around. Read more

type Error = EncoderError

The error type when some error occurs during serialization.

type SerializeSeq = ArraySerializer

Type returned from [serialize_seq] for serializing the content of the sequence. Read more

type SerializeTuple = TupleSerializer

Type returned from [serialize_tuple] for serializing the content of the tuple. Read more

type SerializeTupleStruct = TupleStructSerializer

Type returned from [serialize_tuple_struct] for serializing the content of the tuple struct. Read more

type SerializeTupleVariant = TupleVariantSerializer

Type returned from [serialize_tuple_variant] for serializing the content of the tuple variant. Read more

type SerializeMap = MapSerializer

Type returned from [serialize_map] for serializing the content of the map. Read more

type SerializeStruct = StructSerializer

Type returned from [serialize_struct] for serializing the content of the struct. Read more

type SerializeStructVariant = StructVariantSerializer

Type returned from [serialize_struct_variant] for serializing the content of the struct variant. Read more

Auto Trait Implementations

impl Unpin for Encoder

impl Sync for Encoder

impl Send for Encoder

impl UnwindSafe for Encoder

impl RefUnwindSafe for Encoder

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self