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
IndexNotFound
Fields of IndexNotFound
index: String |
Parsing
Fields of Parsing
line: u64 | |
col: u64 | |
reason: String |
MapperParsing
Fields of MapperParsing
reason: String |
ActionRequestValidation
Fields of ActionRequestValidation
reason: String |
Other(Map<String, Value>)
Trait Implementations
impl Display for ApiError
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for ApiError
fn deserialize<D>(
deserializer: D
) -> Result<ApiError, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
deserializer: D
) -> Result<ApiError, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl From<Map<String, Value>> for ApiError
impl Error for ApiError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more