Struct etcd::ApiError [] [src]

pub struct ApiError {
    pub cause: Option<String>,
    pub error_code: u64,
    pub index: u64,
    pub message: String,
}

An error returned by etcd.

Fields

cause

The key that was being operated upon or reason for the failure.

error_code

The etcd error code.

index

The etcd index.

message

A human-friendly description of the error.

Trait Implementations

impl Deserialize for ApiError

fn deserialize<__D>(deserializer: &mut __D) -> Result<ApiError, __D::Error> where __D: Deserializer

impl Display for ApiError

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

impl StdError for ApiError

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

Derived Implementations

impl Debug for ApiError

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