Enum elastic::error::ApiError []

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

A REST API error response.

Variants

Fields of IndexNotFound

Fields of Parsing

Fields of MapperParsing

Fields of ActionRequestValidation

Trait Implementations

impl Display for ApiError

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for ApiError

impl From<Map<String, Value>> for ApiError

Performs the conversion.

impl Error for ApiError

A short description of the error. Read more

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

impl PartialEq<ApiError> for ApiError

impl Debug for ApiError

Formats the value using the given formatter.