Struct couchdb::Document
[−]
[src]
pub struct Document { pub id: DocumentId, pub rev: Revision, pub deleted: bool, pub attachments: HashMap<String, EmbeddedAttachment>, // some fields omitted }
Document, including both meta-information and application-defined content.
Applications construct documents indirectly, by retrieving them from the
CouchDB server. See the Client::get_document
method for more information.
Fields
id | Id of this document. |
rev | Revision of this document. |
deleted | Whether this document has been deleted. |
attachments | Attachments to this document. |
Methods
impl Document
fn into_content<T: Deserialize>(self) -> Result<T, Error>
Converts self into the document's content, decoding from JSON to do so.