pub struct ListImagesOptions<T>where
    T: AsRef<str> + Eq + Hash,
{ pub all: bool, pub filters: HashMap<T, T>, pub digests: bool, }
Expand description

Parameters to the List Images API

Examples

use bollard::image::ListImagesOptions;

use std::collections::HashMap;
use std::default::Default;

let mut filters = HashMap::new();
filters.insert("dangling", "true");

ListImagesOptions{
  all: true,
  filters: filters,
  ..Default::default()
};
ListImagesOptions::<String>{
  ..Default::default()
};

Fields§

§all: bool

Show all images. Only images from a final layer (no children) are shown by default.

§filters: HashMap<T, T>

A JSON encoded value of the filters to process on the images list. Available filters:

  • before=(<image-name>[:<tag>], <image id> or <image@digest>)
  • dangling=true
  • label=key or label="key=value" of an image label
  • reference=(<image-name>[:<tag>])
  • since=(<image-name>[:<tag>], <image id> or <image@digest>)
§digests: bool

Show digest information as a RepoDigests field on each image.

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.