podman_rest_client/v5/models/summary.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Summary summary
4pub struct Summary {
5 /// Number of containers using this image. Includes both stopped and running
6 /// containers.
7 ///
8 /// This size is not calculated by default, and depends on which API endpoint
9 /// is used. `-1` indicates that the value has not been set / calculated.
10 #[serde(rename = "Containers")]
11 pub containers: i64,
12 /// Date and time at which the image was created as a Unix timestamp
13 /// (number of seconds sinds EPOCH).
14 #[serde(rename = "Created")]
15 pub created: i64,
16 /// ID is the content-addressable ID of an image.
17 ///
18 /// This identifier is a content-addressable digest calculated from the
19 /// image's configuration (which includes the digests of layers used by
20 /// the image).
21 ///
22 /// Note that this digest differs from the `RepoDigests` below, which
23 /// holds digests of image manifests that reference the image.
24 #[serde(rename = "Id")]
25 pub id: String,
26 /// User-defined key/value metadata.
27 #[serde(rename = "Labels")]
28 pub labels: std::collections::HashMap<String, String>,
29 /// ID of the parent image.
30 ///
31 /// Depending on how the image was created, this field may be empty and
32 /// is only set for images that were built/created locally. This field
33 /// is empty if the image was pulled from an image registry.
34 #[serde(rename = "ParentId")]
35 pub parent_id: String,
36 /// List of content-addressable digests of locally available image manifests
37 /// that the image is referenced from. Multiple manifests can refer to the
38 /// same image.
39 ///
40 /// These digests are usually only available if the image was either pulled
41 /// from a registry, or if the image was pushed to a registry, which is when
42 /// the manifest is generated and its digest calculated.
43 #[serde(rename = "RepoDigests")]
44 pub repo_digests: Vec<String>,
45 /// List of image names/tags in the local image cache that reference this
46 /// image.
47 ///
48 /// Multiple image tags can refer to the same image, and this list may be
49 /// empty if no tags reference the image, in which case the image is
50 /// "untagged", in which case it can still be referenced by its ID.
51 #[serde(rename = "RepoTags")]
52 pub repo_tags: Vec<String>,
53 /// Total size of image layers that are shared between this image and other
54 /// images.
55 ///
56 /// This size is not calculated by default. `-1` indicates that the value
57 /// has not been set / calculated.
58 #[serde(rename = "SharedSize")]
59 pub shared_size: i64,
60 /// Total size of the image including all layers it is composed of.
61 #[serde(rename = "Size")]
62 pub size: i64,
63 /// Total size of the image including all layers it is composed of.
64 ///
65 /// Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
66 #[serde(rename = "VirtualSize")]
67 pub virtual_size: Option<i64>,
68}