[−][src]Struct bsonrs::doc::Document
Methods
impl Document
[src]
impl Document
pub fn new() -> Document | [src] |
pub fn clear(&mut self) | [src] |
pub fn get(&self, key: &str) -> Option<&Value> | [src] |
pub fn get_full(&self, key: &str) -> Option<(usize, &String, &Value)> | [src] |
pub fn get_mut(&mut self, key: &str) -> Option<&mut Value> | [src] |
pub fn get_mut_full( | [src] |
pub fn contains_key(&self, key: &str) -> bool | [src] |
pub fn len(&self) -> usize | [src] |
pub fn is_empty(&self) -> bool | [src] |
pub fn entry(&mut self, key: String) -> Entry<String, Value> | [src] |
pub fn insert_value(&mut self, key: String, value: Value) -> Option<Value> | [src] |
pub fn insert_value_full( | [src] |
pub fn insert<K: Into<String>, V: Into<Value>>( | [src] |
pub fn insert_full<K: Into<String>, V: Into<Value>>( | [src] |
pub fn remove(&mut self, key: &str) -> Option<Value> | [src] |
pub fn swap_remove(&mut self, key: &str) -> Option<Value> | [src] |
pub fn swap_remove_full(&mut self, key: &str) -> Option<(usize, String, Value)> | [src] |
pub fn pop(&mut self) -> Option<(String, Value)> | [src] |
pub fn retain<F>(&mut self, keep: F) where | [src] |
pub fn sort_keys(&mut self) | [src] |
pub fn sort_by<F>(&mut self, compare: F) where | [src] |
ⓘImportant traits for IntoIter<K, V>
ⓘImportant traits for IntoIter<K, V>
pub fn sorted_by<F>(self, compare: F) -> IntoIter<String, Value> where | [src] |
ⓘImportant traits for Drain<'a, K, V>
ⓘImportant traits for Drain<'a, K, V>
pub fn drain(&mut self, range: RangeFull) -> Drain<String, Value> | [src] |
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for Iter<'a, K, V>
pub fn iter(&self) -> Iter<String, Value> | [src] |
ⓘImportant traits for IterMut<'a, K, V>
ⓘImportant traits for IterMut<'a, K, V>
pub fn iter_mut(&mut self) -> IterMut<String, Value> | [src] |
ⓘImportant traits for Keys<'a, K, V>
ⓘImportant traits for Keys<'a, K, V>
pub fn keys(&self) -> Keys<String, Value> | [src] |
ⓘImportant traits for Values<'a, K, V>
ⓘImportant traits for Values<'a, K, V>
pub fn value(&self) -> Values<String, Value> | [src] |
ⓘImportant traits for ValuesMut<'a, K, V>
ⓘImportant traits for ValuesMut<'a, K, V>
pub fn value_mut(&mut self) -> ValuesMut<String, Value> | [src] |
pub fn get_f64(&self, key: &str) -> Result<f64> | [src] |
pub fn get_i32(&self, key: &str) -> Result<i32> | [src] |
pub fn get_i64(&self, key: &str) -> Result<i64> | [src] |
pub fn get_str(&self, key: &str) -> Result<&str> | [src] |
pub fn get_array(&self, key: &str) -> Result<&Array> | [src] |
pub fn get_document(&self, key: &str) -> Result<&Document> | [src] |
pub fn get_bool(&self, key: &str) -> Result<bool> | [src] |
pub fn is_null(&self, key: &str) -> bool | [src] |
pub fn get_binary(&self, key: &str) -> Result<&Vec<u8>> | [src] |
pub fn get_object_id(&self, key: &str) -> Result<&ObjectId> | [src] |
pub fn get_time_stamp(&self, key: &str) -> Result<i64> | [src] |
pub fn get_utc_datetime(&self, key: &str) -> Result<&DateTime<Utc>> | [src] |
pub fn encode( | [src] |
pub fn decode( | [src] |
pub fn to_vec(&self) -> EncodeResult<Vec<u8>> | [src] |
pub fn from_slice(slice: &[u8]) -> DecodeResult<Document> | [src] |
pub fn extend<I: Into<Document>>(&mut self, iter: I) | [src] |
pub fn get_index(&self, index: usize) -> Option<(&String, &Value)> | [src] |
pub fn get_index_mut( | [src] |
pub fn swap_remove_index(&mut self, index: usize) -> Option<(String, Value)> | [src] |
Trait Implementations
impl From<Document> for Value
[src]
impl From<Document> for Value
impl From<IndexMap<String, Value, RandomState>> for Document
[src]
impl From<IndexMap<String, Value, RandomState>> for Document
impl IntoIterator for Document
[src]
impl IntoIterator for Document
type Item = (String, Value)
The type of the elements being iterated over.
type IntoIter = IntoIter<String, Value>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a> IntoIterator for &'a Document
[src]
impl<'a> IntoIterator for &'a Document
type Item = (&'a String, &'a Value)
The type of the elements being iterated over.
type IntoIter = Iter<'a, String, Value>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a> IntoIterator for &'a mut Document
[src]
impl<'a> IntoIterator for &'a mut Document
type Item = (&'a String, &'a mut Value)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, String, Value>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl Eq for Document
[src]
impl Eq for Document
impl Default for Document
[src]
impl Default for Document
impl PartialEq<Document> for Document
[src]
impl PartialEq<Document> for Document
impl Clone for Document
[src]
impl Clone for Document
fn clone(&self) -> Document | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Document
[src]
impl Debug for Document
impl Display for Document
[src]
impl Display for Document
impl FromIterator<(String, Value)> for Document
[src]
impl FromIterator<(String, Value)> for Document
impl Serialize for Document
[src]
impl Serialize for Document
impl<'de> Deserialize<'de> for Document
[src]
impl<'de> Deserialize<'de> for Document
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where | [src] |
Deserialize this value given this Deserializer
.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool | [src] |