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 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

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.

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