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