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
IndexNotFound
Fields of IndexNotFound
index: String |
IndexAlreadyExists
Fields of IndexAlreadyExists
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 Debug for ApiError
[src]
impl PartialEq for ApiError
[src]
fn eq(&self, __arg_0: &ApiError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ApiError) -> bool
This method tests for !=
.
impl Display 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
impl<'de> Deserialize<'de> for ApiError
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more