Struct k8s_openapi::apimachinery::pkg::apis::meta::v1::StatusCause
source · pub struct StatusCause {
pub field: Option<String>,
pub message: Option<String>,
pub reason: Option<String>,
}
Expand description
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
Fields§
§field: Option<String>
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
Examples: “name” - the field “name” on the current resource “items[0].name” - the field “name” on the first array entry in “items”
message: Option<String>
A human-readable description of the cause of the error. This field may be presented as-is to a reader.
reason: Option<String>
A machine-readable description of the cause of the error. If this value is empty there is no information available.
Trait Implementations§
source§impl Clone for StatusCause
impl Clone for StatusCause
source§fn clone(&self) -> StatusCause
fn clone(&self) -> StatusCause
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 StatusCause
impl Debug for StatusCause
source§impl DeepMerge for StatusCause
impl DeepMerge for StatusCause
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for StatusCause
impl Default for StatusCause
source§fn default() -> StatusCause
fn default() -> StatusCause
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StatusCause
impl<'de> Deserialize<'de> for StatusCause
source§fn 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
source§impl JsonSchema for StatusCause
impl JsonSchema for StatusCause
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for StatusCause
impl PartialEq for StatusCause
source§impl Serialize for StatusCause
impl Serialize for StatusCause
impl StructuralPartialEq for StatusCause
Auto Trait Implementations§
impl Freeze for StatusCause
impl RefUnwindSafe for StatusCause
impl Send for StatusCause
impl Sync for StatusCause
impl Unpin for StatusCause
impl UnwindSafe for StatusCause
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)