Struct kube_client::error::ErrorResponse  
source · pub struct ErrorResponse {
    pub status: String,
    pub message: String,
    pub reason: String,
    pub code: u16,
}Available on crate features 
config or client only.Expand description
An error response from the API.
Fields§
§status: StringThe status
message: StringA message about the error
reason: StringThe reason for the error
code: u16The error code
Trait Implementations§
source§impl Clone for ErrorResponse
 
impl Clone for ErrorResponse
source§fn clone(&self) -> ErrorResponse
 
fn clone(&self) -> ErrorResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for ErrorResponse
 
impl Debug for ErrorResponse
source§impl<'de> Deserialize<'de> for ErrorResponse
 
impl<'de> Deserialize<'de> for ErrorResponse
source§fn deserialize<__D>(
    __deserializer: __D
) -> Result<ErrorResponse, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<ErrorResponse, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ErrorResponse
 
impl Display for ErrorResponse
source§impl Error for ErrorResponse
 
impl Error for ErrorResponse
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for ErrorResponse
 
impl PartialEq for ErrorResponse
source§fn eq(&self, other: &ErrorResponse) -> bool
 
fn eq(&self, other: &ErrorResponse) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for ErrorResponse
 
impl Serialize for ErrorResponse
source§fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ErrorResponse
impl StructuralEq for ErrorResponse
impl StructuralPartialEq for ErrorResponse
Auto Trait Implementations§
impl RefUnwindSafe for ErrorResponse
impl Send for ErrorResponse
impl Sync for ErrorResponse
impl Unpin for ErrorResponse
impl UnwindSafe for ErrorResponse
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
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.