Module bson::ser

source ·
Expand description

Serializer

Structs

Serde Serializer
Options used to configure a Serializer.

Enums

Possible errors that can arise during encoding.

Functions

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

Type Definitions

Alias for Result<T, Error>.