Struct couchdb::ErrorResponse [] [src]

pub struct ErrorResponse {
    pub error: String,
    pub reason: String,
    // some fields omitted
}

Response content from the CouchDB server in case of error.

Fields

error

Error string returned by CouchDB Server.

This is the high-level name of the error—e.g., “file_exists”.

reason

Reason string returned by CouchDB Server.

This is a low-level description of the error—e.g., “The database could not be created, the file already exists.”

Trait Implementations

impl Display for ErrorResponse

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl Deserialize for ErrorResponse

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

Derived Implementations

impl PartialOrd for ErrorResponse

fn partial_cmp(&self, __arg_0: &ErrorResponse) -> Option<Ordering>

fn lt(&self, __arg_0: &ErrorResponse) -> bool

fn le(&self, __arg_0: &ErrorResponse) -> bool

fn gt(&self, __arg_0: &ErrorResponse) -> bool

fn ge(&self, __arg_0: &ErrorResponse) -> bool

impl PartialEq for ErrorResponse

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

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

impl Ord for ErrorResponse

fn cmp(&self, __arg_0: &ErrorResponse) -> Ordering

impl Hash for ErrorResponse

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for ErrorResponse

impl Debug for ErrorResponse

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

impl Clone for ErrorResponse

fn clone(&self) -> ErrorResponse

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