Struct k8s_openapi_ext::corev1::ContainerState
source · [−]pub struct ContainerState {
pub running: Option<ContainerStateRunning>,
pub terminated: Option<ContainerStateTerminated>,
pub waiting: Option<ContainerStateWaiting>,
}
Expand description
ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.
Fields
running: Option<ContainerStateRunning>
Details about a running container
terminated: Option<ContainerStateTerminated>
Details about a terminated container
waiting: Option<ContainerStateWaiting>
Details about a waiting container
Trait Implementations
sourceimpl Clone for ContainerState
impl Clone for ContainerState
sourcefn clone(&self) -> ContainerState
fn clone(&self) -> ContainerState
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContainerState
impl Debug for ContainerState
sourceimpl DeepMerge for ContainerState
impl DeepMerge for ContainerState
sourcefn merge_from(&mut self, other: ContainerState)
fn merge_from(&mut self, other: ContainerState)
Merge
other
into self
.sourceimpl Default for ContainerState
impl Default for ContainerState
sourcefn default() -> ContainerState
fn default() -> ContainerState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContainerState
impl<'de> Deserialize<'de> for ContainerState
sourcefn deserialize<D>(
deserializer: D
) -> Result<ContainerState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ContainerState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ContainerState> for ContainerState
impl PartialEq<ContainerState> for ContainerState
sourcefn eq(&self, other: &ContainerState) -> bool
fn eq(&self, other: &ContainerState) -> bool
sourceimpl Serialize for ContainerState
impl Serialize for ContainerState
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContainerState
Auto Trait Implementations
impl RefUnwindSafe for ContainerState
impl Send for ContainerState
impl Sync for ContainerState
impl Unpin for ContainerState
impl UnwindSafe for ContainerState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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