podman_rest_client/v4/params/
container_list.rs

1#[derive(Default, Debug)]
2pub struct ContainerList<'a> {
3    /// Return all containers. By default, only running containers are shown
4    pub all: Option<bool>,
5    /// Return containers in storage not controlled by Podman
6    pub external: Option<bool>,
7    /// Return this number of most recently created containers, including non-running ones.
8    pub limit: Option<i64>,
9    /// Return the size of container as fields SizeRw and SizeRootFs.
10    pub size: Option<bool>,
11    /// Returns a list of containers.
12    ///  - ancestor=(<image-name>[:<tag>], <image id>, or <image@digest>)
13    ///  - before=(<container id> or <container name>)
14    ///  - expose=(<port>[/<proto>]|<startport-endport>/[<proto>])
15    ///  - exited=<int> containers with exit code of <int>
16    ///  - health=(starting|healthy|unhealthy|none)
17    ///  - id=<ID> a container's ID
18    ///  - is-task=(true|false)
19    ///  - label=key or label="key=value" of a container label
20    ///  - name=<name> a container's name
21    ///  - network=(<network id> or <network name>)
22    ///  - publish=(<port>[/<proto>]|<startport-endport>/[<proto>])
23    ///  - since=(<container id> or <container name>)
24    ///  - status=(created|restarting|running|removing|paused|exited|dead)
25    ///  - volume=(<volume name> or <mount point destination>)
26    pub filters: Option<&'a str>,
27}