Struct kube_core::ErrorResponse
source · [−]pub struct ErrorResponse {
pub status: String,
pub message: String,
pub reason: String,
pub code: u16,
}
Expand description
An error response from the API.
Fields
status: String
The status
message: String
A message about the error
reason: String
The reason for the error
code: u16
The error code
Trait Implementations
sourceimpl Clone for ErrorResponse
impl Clone for ErrorResponse
sourcefn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ErrorResponse
impl Debug for ErrorResponse
sourceimpl<'de> Deserialize<'de> for ErrorResponse
impl<'de> Deserialize<'de> for ErrorResponse
sourcefn 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
sourceimpl Display for ErrorResponse
impl Display for ErrorResponse
sourceimpl Error for ErrorResponse
impl Error for ErrorResponse
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<ErrorResponse> for ErrorResponse
impl PartialEq<ErrorResponse> for ErrorResponse
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ErrorResponse) -> bool
fn ne(&self, other: &ErrorResponse) -> bool
This method tests for !=
.
sourceimpl Serialize for ErrorResponse
impl Serialize for ErrorResponse
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more