[−][src]Enum bson::spec::ElementType
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)
ObjectId
Boolean
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
MaxKey
MinKey
Methods
impl ElementType
[src]
pub fn from(tag: u8) -> Option<ElementType>
[src]
Attempt to convert from a u8
.
Trait Implementations
impl Clone for ElementType
[src]
fn clone(&self) -> ElementType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ElementType
[src]
impl Eq for ElementType
[src]
impl PartialEq<ElementType> for ElementType
[src]
fn eq(&self, other: &ElementType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for ElementType
[src]
Auto Trait Implementations
impl Unpin for ElementType
impl Sync for ElementType
impl Send for ElementType
impl UnwindSafe for ElementType
impl RefUnwindSafe for ElementType
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,