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§
Source§impl Clone for ContainerState
impl Clone for ContainerState
Source§fn clone(&self) -> ContainerState
fn clone(&self) -> ContainerState
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 ContainerState
impl Debug for ContainerState
Source§impl DeepMerge for ContainerState
impl DeepMerge for ContainerState
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ContainerState
impl Default for ContainerState
Source§fn default() -> ContainerState
fn default() -> ContainerState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContainerState
impl<'de> Deserialize<'de> for ContainerState
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 PartialEq for ContainerState
impl PartialEq for ContainerState
Source§impl Serialize for ContainerState
impl Serialize for ContainerState
impl StructuralPartialEq for ContainerState
Auto Trait Implementations§
impl Freeze for ContainerState
impl RefUnwindSafe for ContainerState
impl Send for ContainerState
impl Sync for ContainerState
impl Unpin for ContainerState
impl UnwindSafe for ContainerState
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