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.
This type is not used in any activity, and only used as part of another schema.
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. 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more