Struct bollard::network::PruneNetworksOptions [−][src]
pub struct PruneNetworksOptions<T> where
T: Into<String> + Eq + Hash + Serialize, {
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more