[][src]Enum polodb_bson::Value

pub enum Value {
    Null,
    Double(f64),
    Boolean(bool),
    Int(i64),
    String(Rc<String>),
    ObjectId(Rc<ObjectId>),
    Array(Rc<Array>),
    Document(Rc<Document>),
    Binary(Rc<Vec<u8>>),
    UTCDateTime(Rc<UTCDateTime>),
}

Variants

Null
Double(f64)
Boolean(bool)
Int(i64)
String(Rc<String>)
ObjectId(Rc<ObjectId>)
Array(Rc<Array>)
Document(Rc<Document>)
Binary(Rc<Vec<u8>>)
UTCDateTime(Rc<UTCDateTime>)

Implementations

impl Value[src]

pub fn value_cmp(&self, other: &Value) -> BsonResult<Ordering>[src]

pub fn ty_name(&self) -> &str[src]

pub fn ty_int(&self) -> u8[src]

pub fn unwrap_document(&self) -> &Rc<Document>[src]

pub fn unwrap_array(&self) -> &Rc<Array>[src]

pub fn unwrap_document_mut(&mut self) -> &mut Rc<Document>[src]

pub fn unwrap_boolean(&self) -> bool[src]

pub fn unwrap_int(&self) -> i64[src]

pub fn unwrap_string(&self) -> &str[src]

pub fn is_valid_key_type(&self) -> bool[src]

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

impl<'_> From<&'_ str> for Value[src]

impl From<Array> for Value[src]

impl From<Document> for Value[src]

impl From<ObjectId> for Value[src]

impl From<Rc<String>> for Value[src]

impl From<String> for Value[src]

impl From<UTCDateTime> for Value[src]

impl From<Vec<u8>> for Value[src]

impl From<bool> for Value[src]

impl From<f64> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<usize> for Value[src]

Auto Trait Implementations

impl !RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl !UnwindSafe for Value

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.