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.

Trait Implementations

impl Deserialize for Document

fn deserialize<D>(d: &mut D) -> Result<Self, D::Error> where D: Deserializer

Derived Implementations

impl PartialEq for Document

fn eq(&self, __arg_0: &Document) -> bool

fn ne(&self, __arg_0: &Document) -> bool

impl Debug for Document

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Document

fn clone(&self) -> Document

fn clone_from(&mut self, source: &Self)