Enum bson::spec::ElementType [−][src]
#[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
Utf8String
EmbeddedDocument
Array
Binary
Undefined
Deprecated.
ObjectId
Boolean
UtcDatetime
NullValue
RegularExpression
DbPointer
Deprecated.
JavaScriptCode
Symbol
Deprecated.
JavaScriptCodeWithScope
Integer32Bit
TimeStamp
Integer64Bit
MaxKey
MinKey
Methods
impl ElementType
[src]
impl ElementType
pub fn from(tag: u8) -> Option<ElementType>
[src]
pub fn from(tag: u8) -> Option<ElementType>
Attempt to convert from a u8
.
Trait Implementations
impl Debug for ElementType
[src]
impl Debug for ElementType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ElementType
[src]
impl Eq for ElementType
impl PartialEq for ElementType
[src]
impl PartialEq for ElementType
Auto Trait Implementations
impl Send for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Sync for ElementType