Struct bollard::image::SearchImagesOptions
source · pub struct SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize,{
pub term: T,
pub limit: Option<u64>,
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters to the Search Images API
Example
use bollard::image::SearchImagesOptions;
use std::default::Default;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("until", vec!["10m"]);
SearchImagesOptions {
term: "hello-world",
filters,
..Default::default()
};
SearchImagesOptions::<String> {
..Default::default()
};
Fields§
§term: T
Term to search (required)
limit: Option<u64>
Maximum number of results to return
filters: HashMap<T, Vec<T>>
A JSON encoded value of the filters to process on the images list. Available filters:
is-automated=(true|false)
is-official=(true|false)
stars=<number>
Matches images that has at least ‘number’ stars.
Trait Implementations§
source§impl<T> Clone for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Clone,
impl<T> Clone for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Clone,
source§fn clone(&self) -> SearchImagesOptions<T>
fn clone(&self) -> SearchImagesOptions<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 SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Debug,
impl<T> Debug for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Debug,
source§impl<T> Default for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Default,
impl<T> Default for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + Default,
source§fn default() -> SearchImagesOptions<T>
fn default() -> SearchImagesOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq<SearchImagesOptions<T>> for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + PartialEq,
impl<T> PartialEq<SearchImagesOptions<T>> for SearchImagesOptions<T>where
T: Into<String> + Eq + Hash + Serialize + PartialEq,
source§fn eq(&self, other: &SearchImagesOptions<T>) -> bool
fn eq(&self, other: &SearchImagesOptions<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.