Enum bson::Bson [] [src]

pub enum Bson {
    FloatingPoint(f64),
    String(String),
    Array(Array),
    Document(Document),
    Boolean(bool),
    Null,
    RegExp(StringString),
    JavaScriptCode(String),
    JavaScriptCodeWithScope(StringDocument),
    I32(i32),
    I64(i64),
    TimeStamp(i64),
    Binary(BinarySubtypeVec<u8>),
    ObjectId(ObjectId),
    UtcDatetime(DateTime<UTC>),
}

Possible BSON value types.

Variants

Methods

impl Bson
[src]

Get the ElementType of this value.

Convert this value to the best approximate Json.

Create a Bson from a Json.

Trait Implementations

impl PartialEq for Bson
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Bson
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Bson
[src]

Formats the value using the given formatter.

impl Display for Bson
[src]

Formats the value using the given formatter.

impl From<f32> for Bson
[src]

Performs the conversion.

impl From<f64> for Bson
[src]

Performs the conversion.

impl<'a> From<&'a str> for Bson
[src]

Performs the conversion.

impl From<String> for Bson
[src]

Performs the conversion.

impl<'a> From<&'a String> for Bson
[src]

Performs the conversion.

impl From<Array> for Bson
[src]

Performs the conversion.

impl From<Document> for Bson
[src]

Performs the conversion.

impl From<bool> for Bson
[src]

Performs the conversion.

impl From<(String, String)> for Bson
[src]

Performs the conversion.

impl From<(String, Document)> for Bson
[src]

Performs the conversion.

impl From<(BinarySubtype, Vec<u8>)> for Bson
[src]

Performs the conversion.

impl From<i32> for Bson
[src]

Performs the conversion.

impl From<i64> for Bson
[src]

Performs the conversion.

impl From<u32> for Bson
[src]

Performs the conversion.

impl From<u64> for Bson
[src]

Performs the conversion.

impl From<[u8; 12]> for Bson
[src]

Performs the conversion.

impl From<ObjectId> for Bson
[src]

Performs the conversion.

impl From<DateTime<UTC>> for Bson
[src]

Performs the conversion.

impl Serialize for Bson
[src]

Serializes this value into this serializer.

impl Deserialize for Bson
[src]

Deserialize this value given this Deserializer.