#[non_exhaustive]pub struct ErrorResponseBase {
pub error: Option<ErrorCause>,
pub status: Option<i32>,
}Expand description
The response returned by Elasticsearch when request execution did not succeed.
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.error: Option<ErrorCause>§status: Option<i32>Implementations§
Source§impl ErrorResponseBase
impl ErrorResponseBase
Sourcepub fn new(error: impl Into<ErrorCause>, status: i32) -> Self
pub fn new(error: impl Into<ErrorCause>, status: i32) -> Self
A ErrorResponseBase with its required properties set.
Trait Implementations§
Source§impl Clone for ErrorResponseBase
impl Clone for ErrorResponseBase
Source§impl Debug for ErrorResponseBase
impl Debug for ErrorResponseBase
Source§impl<'de> Deserialize<'de> for ErrorResponseBase
impl<'de> Deserialize<'de> for ErrorResponseBase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorResponseBase
impl PartialEq for ErrorResponseBase
Source§impl Serialize for ErrorResponseBase
impl Serialize for ErrorResponseBase
impl StructuralPartialEq for ErrorResponseBase
Auto Trait Implementations§
impl Freeze for ErrorResponseBase
impl RefUnwindSafe for ErrorResponseBase
impl Send for ErrorResponseBase
impl Sync for ErrorResponseBase
impl Unpin for ErrorResponseBase
impl UnsafeUnpin for ErrorResponseBase
impl UnwindSafe for ErrorResponseBase
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