pub struct ContainerStatus {
pub container_id: String,
pub name: String,
pub image: String,
pub ready: bool,
pub restart_count: i32,
}Expand description
Container object definition
Fields§
§container_id: StringUnique identifier of the container
It normally starts with containerd:// in kubernetes cluster
name: StringName of the container
image: StringImage used by the container
ready: boolIndicates container status to be ready or not
restart_count: i32Indicates restart count
Implementations§
Source§impl ContainerStatus
impl ContainerStatus
Sourcepub fn container_id_suffix(&self) -> &str
pub fn container_id_suffix(&self) -> &str
Access unique id of container without type prefix
Trait Implementations§
Source§impl Debug for ContainerStatus
impl Debug for ContainerStatus
Source§impl<'de> Deserialize<'de> for ContainerStatus
impl<'de> Deserialize<'de> for ContainerStatus
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
Auto Trait Implementations§
impl Freeze for ContainerStatus
impl RefUnwindSafe for ContainerStatus
impl Send for ContainerStatus
impl Sync for ContainerStatus
impl Unpin for ContainerStatus
impl UnsafeUnpin for ContainerStatus
impl UnwindSafe for ContainerStatus
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