Struct elasticsearch::http::response::Error[][src]

pub struct Error { /* fields omitted */ }

Details about the exception raised by Elasticsearch

Implementations

impl Error[src]

pub fn caused_by(&self) -> Option<&Cause>[src]

The cause of the exception

pub fn root_cause(&self) -> &Vec<Cause>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

The root causes for the exception

pub fn header(&self) -> &BTreeMap<String, Vec<String>>[src]

The headers for the exception

pub fn reason(&self) -> Option<&str>[src]

The reason for the exception, if available.

pub fn stack_trace(&self) -> Option<&str>[src]

The exception stack trace, if available.

Available if error_trace is specified on the request

pub fn ty(&self) -> Option<&str>[src]

The type of exception, if available.

pub fn additional_details(&self) -> &BTreeMap<String, Value>[src]

Additional details about the cause.

Elasticsearch can return additional details about an exception, depending on context, which do not map to fields on Error. These are collected here

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl<'de> Deserialize<'de> for Error[src]

impl FromStr for Error[src]

type Err = Void

The associated error which can be returned from parsing.

impl PartialEq<Error> for Error[src]

impl Serialize for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.