#[non_exhaustive]pub struct StatusCondition {
pub code: Code,
pub message: String,
pub canonical_code: Code,
}Expand description
StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: CodeMachine-friendly representation of the condition Deprecated. Use canonical_code instead.
message: StringHuman-friendly representation of the condition
canonical_code: CodeCanonical code of the condition.
Implementations§
Source§impl StatusCondition
impl StatusCondition
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_canonical_code<T: Into<Code>>(self, v: T) -> Self
pub fn set_canonical_code<T: Into<Code>>(self, v: T) -> Self
Sets the value of canonical_code.
Trait Implementations§
Source§impl Clone for StatusCondition
impl Clone for StatusCondition
Source§fn clone(&self) -> StatusCondition
fn clone(&self) -> StatusCondition
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 StatusCondition
impl Debug for StatusCondition
Source§impl Default for StatusCondition
impl Default for StatusCondition
Source§fn default() -> StatusCondition
fn default() -> StatusCondition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatusConditionwhere
StatusCondition: Default,
impl<'de> Deserialize<'de> for StatusConditionwhere
StatusCondition: Default,
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 Message for StatusCondition
impl Message for StatusCondition
Source§impl PartialEq for StatusCondition
impl PartialEq for StatusCondition
Source§impl Serialize for StatusCondition
impl Serialize for StatusCondition
impl StructuralPartialEq for StatusCondition
Auto Trait Implementations§
impl Freeze for StatusCondition
impl RefUnwindSafe for StatusCondition
impl Send for StatusCondition
impl Sync for StatusCondition
impl Unpin for StatusCondition
impl UnwindSafe for StatusCondition
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