Module ser

Module ser 

Source
Expand description

Serializer

Structs§

Serializer
Serde Serializer
SerializerOptions
Options used to configure a Serializer.

Enums§

Error
Possible errors that can arise during encoding.

Functions§

to_bson
Encode a T Serializable into a Bson value.
to_bson_with_options
Encode a T into a Bson value, configuring the underlying serializer with the provided options.
to_document
Encode a T Serializable into a BSON Document.
to_document_with_options
Encode a T into a Document, configuring the underlying serializer with the provided options.
to_raw_document_buf
Serialize the given T as a RawDocumentBuf.
to_vec
Serialize the given T as a BSON byte vector.

Type Aliases§

Result
Alias for Result<T, Error>.