Struct podman_api::opts::ContainerListOptsBuilder
source · pub struct ContainerListOptsBuilder { /* private fields */ }Expand description
A builder struct for ContainerListOpts.
Implementations§
source§impl ContainerListOptsBuilder
impl ContainerListOptsBuilder
sourcepub fn build(self) -> ContainerListOpts
pub fn build(self) -> ContainerListOpts
Finish building ContainerListOpts.
source§impl ContainerListOptsBuilder
impl ContainerListOptsBuilder
sourcepub fn all(self, all: bool) -> Self
pub fn all(self, all: bool) -> Self
Return all containers. By default, only running containers are shown
sourcepub fn limit(self, limit: usize) -> Self
pub fn limit(self, limit: usize) -> Self
Return this number of most recently created containers, including non-running ones.
sourcepub fn size(self, size: bool) -> Self
pub fn size(self, size: bool) -> Self
Return the size of container as fields size_rw and size_root_fs.
pub fn filter(
self,
filters: impl IntoIterator<Item = ContainerListFilter>
) -> Self
Trait Implementations§
source§impl Clone for ContainerListOptsBuilder
impl Clone for ContainerListOptsBuilder
source§fn clone(&self) -> ContainerListOptsBuilder
fn clone(&self) -> ContainerListOptsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ContainerListOptsBuilder
impl Debug for ContainerListOptsBuilder
source§impl Default for ContainerListOptsBuilder
impl Default for ContainerListOptsBuilder
source§fn default() -> ContainerListOptsBuilder
fn default() -> ContainerListOptsBuilder
Returns the “default value” for a type. Read more