Struct bollard::image::SearchImagesOptions [−][src]
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
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for SearchImagesOptions<T> where
T: RefUnwindSafe,
impl<T> Send for SearchImagesOptions<T> where
T: Send,
impl<T> Sync for SearchImagesOptions<T> where
T: Sync,
impl<T> Unpin for SearchImagesOptions<T> where
T: Unpin,
impl<T> UnwindSafe for SearchImagesOptions<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