Struct bson::ordered::OrderedDocument [] [src]

pub struct OrderedDocument { /* fields omitted */ }

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

Methods

impl OrderedDocument
[src]

[src]

Creates a new empty OrderedDocument.

[src]

Gets an iterator over the entries of the map.

[src]

Clears the document, removing all values.

[src]

Returns a reference to the Bson corresponding to the key.

[src]

Gets a mutable reference to the Bson corresponding to the key

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns wether this key has a null value

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Gets a collection of all keys in the document.

[src]

Gets a collection of all values in the document.

[src]

Returns the number of elements in the document.

[src]

Returns true if the document contains no elements

[src]

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.

[src]

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

[src]

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

Trait Implementations

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

[src]

Deserialize this value given this Deserializer.

impl Clone for OrderedDocument
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for OrderedDocument
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for OrderedDocument
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for OrderedDocument
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for OrderedDocument
[src]

[src]

Formats the value using the given formatter.

impl IntoIterator for OrderedDocument
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

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

[src]

Creates a value from an iterator. Read more

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

[src]

Performs the conversion.