[][src]Enum mongodb::spec::ElementType

#[repr(u8)]
pub enum ElementType {
    FloatingPoint,
    Utf8String,
    EmbeddedDocument,
    Array,
    Binary,
    Undefined,
    ObjectId,
    Boolean,
    UtcDatetime,
    NullValue,
    RegularExpression,
    DbPointer,
    JavaScriptCode,
    Symbol,
    JavaScriptCodeWithScope,
    Integer32Bit,
    TimeStamp,
    Integer64Bit,
    MaxKey,
    MinKey,
}

All available BSON element types.

Not all element types are representable by the Bson type.

Variants

FloatingPoint

64-bit binary floating point

Utf8String

UTF-8 string

EmbeddedDocument

Embedded document

Array

Array

Binary

Binary data

Undefined

Deprecated. Undefined (value)

ObjectIdBoolean

Boolean value

UtcDatetime

UTC datetime

NullValue

Null value

RegularExpression

Regular expression - The first cstring is the regex pattern, the second is the regex options string. Options are identified by characters, which must be stored in alphabetical order. Valid options are 'i' for case insensitive matching, 'm' for multiline matching, 'x' for verbose mode, 'l' to make \w, \W, etc. locale dependent, 's' for dotall mode ('.' matches everything), and 'u' to make \w, \W, etc. match unicode.

DbPointer

Deprecated.

JavaScriptCode

JavaScript code

Symbol

Deprecated.

JavaScriptCodeWithScope

JavaScript code w/ scope

Integer32Bit

32-bit integer

TimeStamp

Timestamp

Integer64Bit

64-bit integer

MaxKeyMinKey

Methods

impl ElementType[src]

pub fn from(tag: u8) -> Option<ElementType>[src]

Attempt to convert from a u8.

Trait Implementations

impl Eq for ElementType[src]

impl PartialEq<ElementType> for ElementType[src]

impl Debug for ElementType[src]

impl Clone for ElementType[src]

impl Copy for ElementType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self