Struct couchdb::action::PutDocument
[−]
[src]
pub struct PutDocument<'a, P: IntoDocumentPath, T: 'a + Serialize> { // some fields omitted }
Action to create or update a document.
Return
This action returns the document's new revision.
Errors
The following are some of the errors that may occur as a result of executing this action:
Error::DocumentConflict
: The revision is not the latest for the document.Error::NotFound
: The document does not exist.Error::Unauthorized
: The client is unauthorized.