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, T>, }

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

impl<T: Clone> Clone for SearchImagesOptions<T> where
    T: Into<String> + Eq + Hash + Serialize
[src]

impl<T: Debug> Debug for SearchImagesOptions<T> where
    T: Into<String> + Eq + Hash + Serialize
[src]

impl<T: Default> Default for SearchImagesOptions<T> where
    T: Into<String> + Eq + Hash + Serialize
[src]

impl<T> Serialize for SearchImagesOptions<T> where
    T: Into<String> + Eq + Hash + Serialize,
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SearchImagesOptions<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for SearchImagesOptions<T> where
    T: Send
[src]

impl<T> Sync for SearchImagesOptions<T> where
    T: Sync
[src]

impl<T> Unpin for SearchImagesOptions<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for SearchImagesOptions<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.