pub struct PodCondition {
pub type: Option<String>,
pub observed_generation: Option<i64>,
pub status: Option<String>,
pub last_probe_time: Option<Time>,
pub last_transition_time: Option<Time>,
pub reason: Option<String>,
pub message: Option<String>,
}
Expand description
PodCondition contains details for the current condition of this pod.
Fields§
§type: Option<String>
Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
observed_generation: Option<i64>
If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field. +featureGate=PodObservedGenerationTracking +optional
status: Option<String>
Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
last_probe_time: Option<Time>
Last time we probed the condition. +optional
last_transition_time: Option<Time>
Last time the condition transitioned from one status to another. +optional
reason: Option<String>
Unique, one-word, CamelCase reason for the condition’s last transition. +optional
message: Option<String>
Human-readable message indicating details about last transition. +optional
Implementations§
Source§impl PodCondition
impl PodCondition
Sourcepub fn status(&self) -> &str
pub fn status(&self) -> &str
Returns the value of status
, or the default value if status
is unset.
Sourcepub fn reason(&self) -> &str
pub fn reason(&self) -> &str
Returns the value of reason
, or the default value if reason
is unset.
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message
, or the default value if message
is unset.
Sourcepub fn observed_generation(&self) -> i64
pub fn observed_generation(&self) -> i64
Returns the value of observed_generation
, or the default value if observed_generation
is unset.
Trait Implementations§
Source§impl Clone for PodCondition
impl Clone for PodCondition
Source§fn clone(&self) -> PodCondition
fn clone(&self) -> PodCondition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PodCondition
impl Debug for PodCondition
Source§impl Default for PodCondition
impl Default for PodCondition
Source§impl Hash for PodCondition
impl Hash for PodCondition
Source§impl Message for PodCondition
impl Message for PodCondition
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.