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

pub struct Cause { /* fields omitted */ }

The cause of an exception

Implementations

impl Cause[src]

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

The cause of the exception

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

The reason for the exception

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 Cause[src]

impl Debug for Cause[src]

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

impl PartialEq<Cause> for Cause[src]

impl Serialize for Cause[src]

impl StructuralPartialEq for Cause[src]

Auto Trait Implementations

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> 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.