Enum bson::spec::ElementType [] [src]

pub enum ElementType {
    FloatingPoint,
    Utf8String,
    EmbeddedDocument,
    Array,
    Binary,
    Undefined,
    ObjectId,
    Boolean,
    UtcDatetime,
    NullValue,
    RegularExpression,
    DbPointer,
    JavaScriptCode,
    Deprecated,
    JavaScriptCodeWithScope,
    Integer32Bit,
    TimeStamp,
    Integer64Bit,
    MaxKey,
    MinKey,
}

All available BSON element types.

Not all element types are representable by the Bson type.

Variants

FloatingPointUtf8StringEmbeddedDocumentArrayBinaryUndefined

Deprecated.

ObjectIdBooleanUtcDatetimeNullValueRegularExpressionDbPointer

Deprecated.

JavaScriptCodeDeprecatedJavaScriptCodeWithScopeInteger32BitTimeStampInteger64BitMaxKeyMinKey

Methods

impl ElementType
[src]

fn from(tag: u8) -> Option<ElementType>

Attempt to convert from a u8.

Trait Implementations

impl PartialEq for ElementType
[src]

fn eq(&self, __arg_0: &ElementType) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for ElementType
[src]

impl Debug for ElementType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.