pub struct Status {
pub code: u16,
pub status: String,
pub message: String,
pub reason: String,
pub details: Option<StatusDetails>,
}
Expand description
A Kubernetes status object
Equivalent to Status in k8s-openapi except we have have simplified options
Fields
code: u16
Suggested HTTP return code (0 if unset)
status: String
Status of the operation
One of: Success
or Failure
- more info
message: String
A human-readable description of the status of this operation
reason: String
A machine-readable description of why this operation is in the “Failure” status.
If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
details: Option<StatusDetails>
Extended data associated with the reason.
Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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