pub struct ContainerInfo {
pub id: String,
pub name: String,
pub image: String,
pub status: ContainerStatus,
pub config: ContainerConfig,
pub created_at: SystemTime,
pub started_at: Option<SystemTime>,
pub stopped_at: Option<SystemTime>,
pub pid: Option<u32>,
pub network_info: NetworkInfo,
}Expand description
容器信息
Fields§
§id: String容器 ID
name: String容器名称
image: String镜像名称
status: ContainerStatus状态
config: ContainerConfig配置
created_at: SystemTime创建时间
started_at: Option<SystemTime>启动时间
stopped_at: Option<SystemTime>停止时间
pid: Option<u32>进程 ID
network_info: NetworkInfo网络信息
Trait Implementations§
Source§impl Clone for ContainerInfo
impl Clone for ContainerInfo
Source§fn clone(&self) -> ContainerInfo
fn clone(&self) -> ContainerInfo
Returns a duplicate 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 ContainerInfo
impl Debug for ContainerInfo
Source§impl<'de> Deserialize<'de> for ContainerInfo
impl<'de> Deserialize<'de> for ContainerInfo
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 ContainerInfo
impl RefUnwindSafe for ContainerInfo
impl Send for ContainerInfo
impl Sync for ContainerInfo
impl Unpin for ContainerInfo
impl UnsafeUnpin for ContainerInfo
impl UnwindSafe for ContainerInfo
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