Struct cudb::document::Document [−][src]
pub struct Document { /* fields omitted */ }
Expand description
(Data) document (as opposed to query document, etc.)
Note that _id
is implemented as a regular field in the elems
.
Implementations
Retrieve the value given the path if it exists.
Retrieve the value given the path if it exists. Otherwise, use the default value provided.
Get a reference to the hashmap from a document.
Insert k,v pair into hashtable. If key already exists, the old value is returned.
Create _id
on document (non-recursively) if it doesn’t exist.
Return whether the _id
was updated.
Update a document with the fields present in another document.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
Mutably borrows from an owned value. Read more