pub struct ListContainer {Show 24 fields
pub auto_remove: Option<bool>,
pub command: Option<Vec<String>>,
pub created: Option<DateTime<Utc>>,
pub created_at: Option<String>,
pub exit_code: Option<i32>,
pub exited: Option<bool>,
pub exited_at: Option<i64>,
pub id: Option<String>,
pub image: Option<String>,
pub image_id: Option<String>,
pub is_infra: Option<bool>,
pub labels: Option<HashMap<String, String>>,
pub mounts: Option<Vec<String>>,
pub names: Option<Vec<String>>,
pub namespaces: Option<ListContainerNamespaces>,
pub networks: Option<Vec<String>>,
pub pid: Option<i64>,
pub pod: Option<String>,
pub pod_name: Option<String>,
pub ports: Option<Vec<PortMapping>>,
pub size: Option<ContainerSize>,
pub started_at: Option<i64>,
pub state: Option<String>,
pub status: Option<String>,
}
Expand description
ListContainer describes a container suitable for listing
Fields§
§auto_remove: Option<bool>
AutoRemove
command: Option<Vec<String>>
Container command
created: Option<DateTime<Utc>>
Container creation time
created_at: Option<String>
Human-readable container creation time.
exit_code: Option<i32>
If container has exited, the return code from the command
exited: Option<bool>
If container has exited/stopped
exited_at: Option<i64>
Time container exited
id: Option<String>
The unique identifier for the container
image: Option<String>
Container image
image_id: Option<String>
Container image ID
is_infra: Option<bool>
If this container is a Pod infra container
labels: Option<HashMap<String, String>>
Labels for container
mounts: Option<Vec<String>>
User volume mounts
names: Option<Vec<String>>
The names assigned to the container
namespaces: Option<ListContainerNamespaces>
§networks: Option<Vec<String>>
The network names assigned to the container
pid: Option<i64>
The process id of the container
pod: Option<String>
If the container is part of Pod, the Pod ID. Requires the pod boolean to be set
pod_name: Option<String>
If the container is part of Pod, the Pod name. Requires the pod boolean to be set
ports: Option<Vec<PortMapping>>
Port mappings
size: Option<ContainerSize>
§started_at: Option<i64>
Time when container started
state: Option<String>
State of container
status: Option<String>
Status is a human-readable approximation of a duration for json output
Trait Implementations§
Source§impl Clone for ListContainer
impl Clone for ListContainer
Source§fn clone(&self) -> ListContainer
fn clone(&self) -> ListContainer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more