pub struct ImageSummary {
    pub containers: isize,
    pub created: isize,
    pub id: String,
    pub labels: HashMap<String, String, RandomState>,
    pub parent_id: String,
    pub repo_digests: Vec<String, Global>,
    pub repo_tags: Vec<String, Global>,
    pub shared_size: isize,
    pub size: i64,
    pub virtual_size: i64,
}

Fields§

§containers: isize

Number of containers using this image. Includes both stopped and running containers.

This size is not calculated by default, and depends on which API endpoint is used. -1 indicates that the value has not been set / calculated.

§created: isize

Date and time at which the image was created as a Unix timestamp (number of seconds sinds EPOCH).

§id: String

ID is the content-addressable ID of an image.

This identifier is a content-addressable digest calculated from the image’s configuration (which includes the digests of layers used by the image).

Note that this digest differs from the RepoDigests below, which holds digests of image manifests that reference the image.

§labels: HashMap<String, String, RandomState>

User-defined key/value metadata.

§parent_id: String

ID of the parent image.

Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.

§repo_digests: Vec<String, Global>

List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image.

These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.

§repo_tags: Vec<String, Global>

List of image names/tags in the local image cache that reference this image.

Multiple image tags can refer to the same imagem and this list may be empty if no tags reference the image, in which case the image is “untagged”, in which case it can still be referenced by its ID.

§shared_size: isize

Total size of image layers that are shared between this image and other images.

This size is not calculated by default. -1 indicates that the value has not been set / calculated.

§size: i64

Total size of the image including all layers it is composed of.

§virtual_size: i64

Total size of the image including all layers it is composed of.

In versions of Docker before v1.10, this field was calculated from the image itself and all of its parent images. Docker v1.10 and up store images self-contained, and no longer use a parent-chain, making this field an equivalent of the Size field.

This field is kept for backward compatibility, but may be removed in a future version of the API.

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

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

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