Struct bollard::image::SearchImagesOptions
source · pub struct SearchImagesOptions<T>{
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>
impl<T> Clone for SearchImagesOptions<T>
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>
impl<T> Debug for SearchImagesOptions<T>
source§impl<T> Default for SearchImagesOptions<T>
impl<T> Default for SearchImagesOptions<T>
source§fn default() -> SearchImagesOptions<T>
fn default() -> SearchImagesOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for SearchImagesOptions<T>
impl<T> PartialEq for SearchImagesOptions<T>
source§impl<T> Serialize for SearchImagesOptions<T>
impl<T> Serialize for SearchImagesOptions<T>
impl<T> StructuralPartialEq for SearchImagesOptions<T>
Auto Trait Implementations§
impl<T> Freeze for SearchImagesOptions<T>where
T: Freeze,
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§
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
)