Enum elastic_responses::error::ApiError []

pub enum ApiError {
    IndexNotFound {
        index: String,
    },
    IndexAlreadyExists {
        index: String,
    },
    Parsing {
        line: u64,
        col: u64,
        reason: String,
    },
    MapperParsing {
        reason: String,
    },
    ActionRequestValidation {
        reason: String,
    },
    Other(Map<String, Value>),
    // some variants omitted
}

A REST API error response.

Variants

Fields of IndexNotFound

Fields of IndexAlreadyExists

Fields of Parsing

Fields of MapperParsing

Fields of ActionRequestValidation

Trait Implementations

impl Debug for ApiError
[src]

Formats the value using the given formatter.

impl PartialEq for ApiError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for ApiError

Formats the value using the given formatter. Read more

impl Error for ApiError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'de> Deserialize<'de> for ApiError
[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<Map<String, Value>> for ApiError
[src]

Performs the conversion.