Struct bollard::service::ListServicesOptions [−][src]
pub struct ListServicesOptions<T> where
T: Into<String> + Eq + Hash + Serialize, {
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
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
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