[][src]Module avocado::bsn

BSON serialization and deserialization helpers.

Traits

BsonExt

Methods for dynamically type-checking BSON.

Functions

deserialize_document

Creates a single strongly-typed document from loosely-typed BSON.

deserialize_documents

Creates an array of strongly-typed documents from loosely-typed BSON.

serialize_document

Creates a BSON Document out of a serializable value. TODO(H2CO3): validate that the value doesn't contain integers not expressible by i64, because the BSON library just casts everything, and overlfowing positive values may end up as negatives in the BSON.

serialize_documents

Creates an array of BSON Documents from an array of serializable values.