[][src]Struct mongodb::ordered::OrderedDocument

pub struct OrderedDocument { /* fields omitted */ }

A BSON document represented as an associative HashMap with insertion ordering.

Methods

impl OrderedDocument
[src]

Creates a new empty OrderedDocument.

Important traits for OrderedDocumentIterator<'a>

Gets an iterator over the entries of the map.

Clears the document, removing all values.

Returns a reference to the Bson corresponding to the key.

Gets a mutable reference to the Bson corresponding to the key

Get a floating point value for this key if it exists and has the correct type.

Get a string slice this key if it exists and has the correct type.

Get a reference to an array for this key if it exists and has the correct type.

Get a reference to a document for this key if it exists and has the correct type.

Get a bool value for this key if it exists and has the correct type.

Returns wether this key has a null value

Get an i32 value for this key if it exists and has the correct type.

Get an i64 value for this key if it exists and has the correct type.

Get a time stamp value for this key if it exists and has the correct type.

Get a generic binary value for this key if it exists and has the correct type.

Get an object id value for this key if it exists and has the correct type.

Get a UTC datetime value for this key if it exists and has the correct type.

Returns true if the map contains a value for the specified key.

Important traits for Keys<'a>

Gets a collection of all keys in the document.

Important traits for Values<'a>

Gets a collection of all values in the document.

Returns the number of elements in the document.

Returns true if the document contains no elements

Sets the value of the entry with the OccupiedEntry's key, and returns the entry's old value. Accepts any type that can be converted into Bson.

Sets the value of the entry with the OccupiedEntry's key, and returns the entry's old value.

Takes the value of the entry out of the document, and returns it.

Trait Implementations

impl Clone for OrderedDocument
[src]

Performs copy-assignment from source. Read more

impl Serialize for OrderedDocument
[src]

impl<'de> Deserialize<'de> for OrderedDocument
[src]

Deserialize this value given this Deserializer.

impl FromIterator<(String, Bson)> for OrderedDocument
[src]

impl Default for OrderedDocument
[src]

impl From<LinkedHashMap<String, Bson, RandomState>> for OrderedDocument
[src]

impl From<OrderedDocument> for Bson
[src]

impl PartialEq<OrderedDocument> for OrderedDocument
[src]

impl Display for OrderedDocument
[src]

impl IntoIterator for OrderedDocument
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a OrderedDocument
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

impl Debug for OrderedDocument
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self