pub struct ContainerList<'a> {
pub all: Option<bool>,
pub external: Option<bool>,
pub limit: Option<i64>,
pub size: Option<bool>,
pub filters: Option<&'a str>,
}
Available on crate feature
v4
only.Fields§
§all: Option<bool>
Return all containers. By default, only running containers are shown
external: Option<bool>
Return containers in storage not controlled by Podman
limit: Option<i64>
Return this number of most recently created containers, including non-running ones.
size: Option<bool>
Return the size of container as fields SizeRw and SizeRootFs.
filters: Option<&'a str>
Returns a list of containers.
- ancestor=(
[: ], , or image@digest) - before=(
or ) - expose=(
[/ ]| /[ ]) - exited=
containers with exit code of - health=(starting|healthy|unhealthy|none)
- id=
a container’s ID - is-task=(true|false)
- label=key or label=“key=value” of a container label
- name=
a container’s name - network=(
or ) - publish=(
[/ ]| /[ ]) - since=(
or ) - status=(created|restarting|running|removing|paused|exited|dead)
- volume=(
or )
Trait Implementations§
Source§impl<'a> Debug for ContainerList<'a>
impl<'a> Debug for ContainerList<'a>
Source§impl<'a> Default for ContainerList<'a>
impl<'a> Default for ContainerList<'a>
Source§fn default() -> ContainerList<'a>
fn default() -> ContainerList<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContainerList<'a>
impl<'a> RefUnwindSafe for ContainerList<'a>
impl<'a> Send for ContainerList<'a>
impl<'a> Sync for ContainerList<'a>
impl<'a> Unpin for ContainerList<'a>
impl<'a> UnwindSafe for ContainerList<'a>
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