pub struct PruneContainersOptions<T>{
pub filters: HashMap<T, Vec<T>>,
}Expand description
Parameters used in the Prune Containers API
§Examples
use bollard::container::PruneContainersOptions;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("until", vec!["10m"]);
PruneContainersOptions{
filters
};Fields§
§filters: HashMap<T, Vec<T>>Filters to process on the prune list, encoded as JSON.
Available filters:
until=<timestamp>Prune containers created before this timestamp. The<timestamp>can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g.10m,1h30m) computed relative to the daemon machine’s time.- label (
label=<key>,label=<key>=<value>,label!=<key>, orlabel!=<key>=<value>) Prune containers with (or without, in caselabel!=...is used) the specified labels.
Trait Implementations§
Source§impl<T> Clone for PruneContainersOptions<T>
impl<T> Clone for PruneContainersOptions<T>
Source§fn clone(&self) -> PruneContainersOptions<T>
fn clone(&self) -> PruneContainersOptions<T>
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<T> Debug for PruneContainersOptions<T>
impl<T> Debug for PruneContainersOptions<T>
Source§impl<T> Default for PruneContainersOptions<T>
impl<T> Default for PruneContainersOptions<T>
Source§fn default() -> PruneContainersOptions<T>
fn default() -> PruneContainersOptions<T>
Returns the “default value” for a type. Read more
Source§impl<T> PartialEq for PruneContainersOptions<T>
impl<T> PartialEq for PruneContainersOptions<T>
Source§impl<T> Serialize for PruneContainersOptions<T>
impl<T> Serialize for PruneContainersOptions<T>
impl<T> StructuralPartialEq for PruneContainersOptions<T>
Auto Trait Implementations§
impl<T> Freeze for PruneContainersOptions<T>
impl<T> RefUnwindSafe for PruneContainersOptions<T>where
T: RefUnwindSafe,
impl<T> Send for PruneContainersOptions<T>where
T: Send,
impl<T> Sync for PruneContainersOptions<T>where
T: Sync,
impl<T> Unpin for PruneContainersOptions<T>where
T: Unpin,
impl<T> UnwindSafe for PruneContainersOptions<T>where
T: UnwindSafe,
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