pub struct SearchImagesOptions<T>where
    T: AsRef<str> + Eq + Hash,
{ pub term: T, pub limit: Option<u64>, pub filters: HashMap<T, 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", "10m");

SearchImagesOptions {
    term: "hello-world",
    filters: 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, 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 a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.