Struct bollard::network::ListNetworksOptions
source · pub struct ListNetworksOptions<T>{
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the List Networks API
§Examples
use bollard::network::ListNetworksOptions;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("label", vec!["maintainer=some_maintainer"]);
ListNetworksOptions{
filters
};
ListNetworksOptions::<&str> {
..Default::default()
};
Fields§
§filters: HashMap<T, Vec<T>>
JSON encoded value of the filters (a map[string][]string
) to process on the networks list. Available filters:
driver=<driver-name>
Matches a network’s driver.id=<network-id>
Matches all or part of a network ID.label=<key>
orlabel=<key>=<value>
of a network label.name=<network-name>
Matches all or part of a network name.scope=["swarm"|"global"|"local"]
Filters networks by scope (swarm
,global
, orlocal
).type=["custom"|"builtin"]
Filters networks by type. Thecustom
keyword returns all user-defined networks.
Trait Implementations§
source§impl<T> Clone for ListNetworksOptions<T>
impl<T> Clone for ListNetworksOptions<T>
source§fn clone(&self) -> ListNetworksOptions<T>
fn clone(&self) -> ListNetworksOptions<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 ListNetworksOptions<T>
impl<T> Debug for ListNetworksOptions<T>
source§impl<T> Default for ListNetworksOptions<T>
impl<T> Default for ListNetworksOptions<T>
source§fn default() -> ListNetworksOptions<T>
fn default() -> ListNetworksOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for ListNetworksOptions<T>
impl<T> PartialEq for ListNetworksOptions<T>
source§impl<T> Serialize for ListNetworksOptions<T>
impl<T> Serialize for ListNetworksOptions<T>
impl<T> StructuralPartialEq for ListNetworksOptions<T>
Auto Trait Implementations§
impl<T> Freeze for ListNetworksOptions<T>
impl<T> RefUnwindSafe for ListNetworksOptions<T>where
T: RefUnwindSafe,
impl<T> Send for ListNetworksOptions<T>where
T: Send,
impl<T> Sync for ListNetworksOptions<T>where
T: Sync,
impl<T> Unpin for ListNetworksOptions<T>where
T: Unpin,
impl<T> UnwindSafe for ListNetworksOptions<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
)