Struct bollard::service::ListServicesOptions
source · pub struct ListServicesOptions<T>{
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the List Service API
§Examples
use bollard::service::ListServicesOptions;
let mut filters = HashMap::new();
filters.insert("mode", vec!["global"]);
ListServicesOptions{
filters,
};
let options: ListServicesOptions<&str> = Default::default();
Fields§
§filters: HashMap<T, Vec<T>>
Filters to process on the service list, encoded as JSON. Available filters:
id
=<ID>
a services’s IDlabel
=key
orlabel
="key=value"
of a service labelmode
=`[“replicated”|“global”] a service’s scheduling modename
=<name>
a services’s name
Trait Implementations§
source§impl<T> Clone for ListServicesOptions<T>
impl<T> Clone for ListServicesOptions<T>
source§fn clone(&self) -> ListServicesOptions<T>
fn clone(&self) -> ListServicesOptions<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 ListServicesOptions<T>
impl<T> Debug for ListServicesOptions<T>
source§impl<T> Default for ListServicesOptions<T>
impl<T> Default for ListServicesOptions<T>
source§fn default() -> ListServicesOptions<T>
fn default() -> ListServicesOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for ListServicesOptions<T>
impl<T> PartialEq for ListServicesOptions<T>
source§impl<T> Serialize for ListServicesOptions<T>
impl<T> Serialize for ListServicesOptions<T>
impl<T> StructuralPartialEq for ListServicesOptions<T>
Auto Trait Implementations§
impl<T> Freeze for ListServicesOptions<T>
impl<T> RefUnwindSafe for ListServicesOptions<T>where
T: RefUnwindSafe,
impl<T> Send for ListServicesOptions<T>where
T: Send,
impl<T> Sync for ListServicesOptions<T>where
T: Sync,
impl<T> Unpin for ListServicesOptions<T>where
T: Unpin,
impl<T> UnwindSafe for ListServicesOptions<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
)