Enum bson::spec::ElementType [−][src]
#[repr(u8)]
pub enum ElementType {
Show 21 variants
Double,
String,
EmbeddedDocument,
Array,
Binary,
Undefined,
ObjectId,
Boolean,
DateTime,
Null,
RegularExpression,
DbPointer,
JavaScriptCode,
Symbol,
JavaScriptCodeWithScope,
Int32,
Timestamp,
Int64,
Decimal128,
MaxKey,
MinKey,
}
Expand description
All available BSON element types.
Not all element types are representable by the Bson
type.
Variants
64-bit binary floating point
UTF-8 string
Embedded document
Array
Binary data
Deprecated. Undefined (value)
Bool value
UTC datetime
Null value
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.
Deprecated.
JavaScript code
Deprecated.
JavaScript code w/ scope
32-bit integer
Timestamp
64-bit integer
Implementations
Attempt to convert from a u8
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ElementType
impl Send for ElementType
impl Sync for ElementType
impl Unpin for ElementType
impl UnwindSafe for ElementType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.