Struct couchdb::action::HeadDocument
[−]
[src]
pub struct HeadDocument<'a, P> where P: IntoDocumentPath {
// some fields omitted
}
Action to check whether a document exists.
Return
This action returns an Option
type. The return value is None
if the
action specifies a revision and the document hasn't been modified since
that revision. Otherwise, the return value is Some
.
Errors
The following are some of the errors that may occur as a result of executing this action:
Error::NotFound
: The document does not exist.Error::Unauthorized
: The client is unauthorized.