Struct bollard::volume::PruneVolumesOptions
source · pub struct PruneVolumesOptions<T>{
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the Prune Volumes API
§Examples
use bollard::volume::PruneVolumesOptions;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("label!", vec!["maintainer=some_maintainer"]);
PruneVolumesOptions{
filters
};
PruneVolumesOptions::<&str>{
..Default::default()
};
Fields§
§filters: HashMap<T, Vec<T>>
Filters to process on the prune list, encoded as JSON.
label
(label=<key>
,label=<key>=<value>
,label!=<key>
, orlabel!=<key>=<value>
) Prune volumes with (or without, in caselabel!=...
is used) the specified labels.
Trait Implementations§
source§impl<T> Clone for PruneVolumesOptions<T>
impl<T> Clone for PruneVolumesOptions<T>
source§fn clone(&self) -> PruneVolumesOptions<T>
fn clone(&self) -> PruneVolumesOptions<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 PruneVolumesOptions<T>
impl<T> Debug for PruneVolumesOptions<T>
source§impl<T> Default for PruneVolumesOptions<T>
impl<T> Default for PruneVolumesOptions<T>
source§fn default() -> PruneVolumesOptions<T>
fn default() -> PruneVolumesOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for PruneVolumesOptions<T>
impl<T> PartialEq for PruneVolumesOptions<T>
source§impl<T> Serialize for PruneVolumesOptions<T>
impl<T> Serialize for PruneVolumesOptions<T>
impl<T> StructuralPartialEq for PruneVolumesOptions<T>
Auto Trait Implementations§
impl<T> Freeze for PruneVolumesOptions<T>
impl<T> RefUnwindSafe for PruneVolumesOptions<T>where
T: RefUnwindSafe,
impl<T> Send for PruneVolumesOptions<T>where
T: Send,
impl<T> Sync for PruneVolumesOptions<T>where
T: Sync,
impl<T> Unpin for PruneVolumesOptions<T>where
T: Unpin,
impl<T> UnwindSafe for PruneVolumesOptions<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)