#[non_exhaustive]pub struct ElasticsearchError {
pub status: u16,
pub response: Option<ErrorResponseBase>,
pub body: Value,
}Expand description
An error response from Elasticsearch.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: u16The status code.
response: Option<ErrorResponseBase>The error, as Elasticsearch describes it, when the body is one.
body: ValueThe body, as JSON when it is JSON.
Implementations§
Trait Implementations§
Source§impl Debug for ElasticsearchError
impl Debug for ElasticsearchError
Auto Trait Implementations§
impl Freeze for ElasticsearchError
impl RefUnwindSafe for ElasticsearchError
impl Send for ElasticsearchError
impl Sync for ElasticsearchError
impl Unpin for ElasticsearchError
impl UnsafeUnpin for ElasticsearchError
impl UnwindSafe for ElasticsearchError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more