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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Auto Trait Implementations§
impl Freeze for ContainerListOptsBuilder
impl RefUnwindSafe for ContainerListOptsBuilder
impl Send for ContainerListOptsBuilder
impl Sync for ContainerListOptsBuilder
impl Unpin for ContainerListOptsBuilder
impl UnwindSafe for ContainerListOptsBuilder
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