podman_rest_client/v5/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    /// A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters:
12    /// - `ancestor`=(`<image-name>[:<tag>]`, `<image id>`, or `<image@digest>`)
13    /// - `before`=(`<container id>` or `<container name>`)
14    /// - `expose`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`)
15    /// - `exited=<int>` containers with exit code of `<int>`
16    /// - `health`=(`starting`, `healthy`, `unhealthy` or `none`)
17    /// - `id=<ID>` a container's ID
18    /// - `is-task`=(`true` or `false`)
19    /// - `label`=(`key` or `"key=value"`) of a container label
20    /// - `name=<name>` a container's name
21    /// - `network`=(`<network id>` or `<network name>`)
22    /// - `publish`=(`<port>[/<proto>]` or `<startport-endport>/[<proto>]`)
23    /// - `since`=(`<container id>` or `<container name>`)
24    /// - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`)
25    /// - `volume`=(`<volume name>` or `<mount point destination>`)
26    pub filters: Option<&'a str>,
27}