Struct podman_autogen_api::models::list_container::ListContainer
source · pub struct ListContainer {Show 27 fields
pub auto_remove: Option<bool>,
pub cid_file: Option<String>,
pub command: Option<Vec<String>>,
pub created: Option<String>,
pub created_at: Option<String>,
pub exit_code: Option<i32>,
pub exited: Option<bool>,
pub exited_at: Option<i64>,
pub exposed_ports: Option<Value>,
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<Box<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 restarts: Option<i32>,
pub size: Option<Box<ContainerSize>>,
pub started_at: Option<i64>,
pub state: Option<String>,
pub status: Option<String>,
}
Expand description
ListContainer : ListContainer describes a container suitable for listing
Fields§
§auto_remove: Option<bool>
AutoRemove
cid_file: Option<String>
CIDFile specified at creation time.
command: Option<Vec<String>>
Container command
created: Option<String>
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
exposed_ports: Option<Value>
ExposedPorts contains the ports that are exposed but not forwarded, see Ports for forwarded ports. The key is the port number and the string slice contains the protocols, i.e. "tcp", "udp" and "sctp".
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<Box<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
restarts: Option<i32>
Restarts is how many times the container was restarted by its restart policy. This is NOT incremented by normal container restarts (only by restart policy).
size: Option<Box<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
Implementations§
source§impl ListContainer
impl ListContainer
sourcepub fn new() -> ListContainer
pub fn new() -> ListContainer
ListContainer describes a container suitable for listing
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 moresource§impl Debug for ListContainer
impl Debug for ListContainer
source§impl Default for ListContainer
impl Default for ListContainer
source§fn default() -> ListContainer
fn default() -> ListContainer
source§impl<'de> Deserialize<'de> for ListContainer
impl<'de> Deserialize<'de> for ListContainer
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>,
source§impl PartialEq for ListContainer
impl PartialEq for ListContainer
source§fn eq(&self, other: &ListContainer) -> bool
fn eq(&self, other: &ListContainer) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ListContainer
impl Serialize for ListContainer
impl StructuralPartialEq for ListContainer
Auto Trait Implementations§
impl Freeze for ListContainer
impl RefUnwindSafe for ListContainer
impl Send for ListContainer
impl Sync for ListContainer
impl Unpin for ListContainer
impl UnwindSafe for ListContainer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)