[][src]Struct kube::ApiError

pub struct ApiError {
    pub status: String,
    pub message: String,
    pub reason: String,
    pub code: u16,
}

ApiError for when things fail

This can be parsed into as an error handling fallback. Replacement data for reqwest::Response::error_for_status, which is often lacking in good permission errors. It's also used in WatchEvent from watch calls.

It's quite commont to get a 410 Gone when the resourceVersion is too old.

Fields

status: Stringmessage: Stringreason: Stringcode: u16

Trait Implementations

impl Clone for ApiError[src]

impl Eq for ApiError[src]

impl PartialEq<ApiError> for ApiError[src]

impl Display for ApiError[src]

impl Debug for ApiError[src]

impl Fail for ApiError[src]

impl Serialize for ApiError[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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