podman_rest_client/v5/models/image_inspect.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3pub struct ImageInspect {
4 /// Architecture is the hardware CPU architecture that the image runs on.
5 #[serde(rename = "Architecture")]
6 pub architecture: Option<String>,
7 /// Author is the name of the author that was specified when committing the
8 /// image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
9 #[serde(rename = "Author")]
10 pub author: Option<String>,
11 /// Comment is an optional message that can be set when committing or
12 /// importing the image.
13 #[serde(rename = "Comment")]
14 pub comment: Option<String>,
15 #[serde(rename = "Config")]
16 pub config: Option<crate::v5::models::Config>,
17 /// Container is for backwards compat but is basically unused
18 #[serde(rename = "Container")]
19 pub container: Option<String>,
20 #[serde(rename = "ContainerConfig")]
21 pub container_config: Option<crate::v5::models::Config>,
22 /// Created is the date and time at which the image was created, formatted in
23 /// RFC 3339 nano-seconds (time.RFC3339Nano).
24 ///
25 /// This information is only available if present in the image,
26 /// and omitted otherwise.
27 #[serde(rename = "Created")]
28 pub created: Option<String>,
29 /// DockerVersion is the version of Docker that was used to build the image.
30 ///
31 /// Depending on how the image was created, this field may be empty.
32 #[serde(rename = "DockerVersion")]
33 pub docker_version: Option<String>,
34 #[serde(rename = "GraphDriver")]
35 pub graph_driver: Option<crate::v5::models::GraphDriverData>,
36 /// ID is the content-addressable ID of an image.
37 ///
38 /// This identifier is a content-addressable digest calculated from the
39 /// image's configuration (which includes the digests of layers used by
40 /// the image).
41 ///
42 /// Note that this digest differs from the `RepoDigests` below, which
43 /// holds digests of image manifests that reference the image.
44 #[serde(rename = "Id")]
45 pub id: Option<String>,
46 #[serde(rename = "Metadata")]
47 pub metadata: Option<crate::v5::models::Metadata>,
48 /// OS is the Operating System the image is built to run on.
49 #[serde(rename = "Os")]
50 pub os: Option<String>,
51 /// OsVersion is the version of the Operating System the image is built to
52 /// run on (especially for Windows).
53 #[serde(rename = "OsVersion")]
54 pub os_version: Option<String>,
55 /// Parent is the ID of the parent image.
56 ///
57 /// Depending on how the image was created, this field may be empty and
58 /// is only set for images that were built/created locally. This field
59 /// is empty if the image was pulled from an image registry.
60 #[serde(rename = "Parent")]
61 pub parent: Option<String>,
62 /// RepoDigests is a list of content-addressable digests of locally available
63 /// image manifests that the image is referenced from. Multiple manifests can
64 /// refer to the same image.
65 ///
66 /// These digests are usually only available if the image was either pulled
67 /// from a registry, or if the image was pushed to a registry, which is when
68 /// the manifest is generated and its digest calculated.
69 #[serde(rename = "RepoDigests")]
70 pub repo_digests: Option<Vec<String>>,
71 /// RepoTags is a list of image names/tags in the local image cache that
72 /// reference this image.
73 ///
74 /// Multiple image tags can refer to the same image, and this list may be
75 /// empty if no tags reference the image, in which case the image is
76 /// "untagged", in which case it can still be referenced by its ID.
77 #[serde(rename = "RepoTags")]
78 pub repo_tags: Option<Vec<String>>,
79 #[serde(rename = "RootFS")]
80 pub root_fs: Option<crate::v5::models::RootFs>,
81 /// Size is the total size of the image including all layers it is composed of.
82 #[serde(rename = "Size")]
83 pub size: Option<i64>,
84 /// Variant is the CPU architecture variant (presently ARM-only).
85 #[serde(rename = "Variant")]
86 pub variant: Option<String>,
87 /// VirtualSize is the total size of the image including all layers it is
88 /// composed of.
89 ///
90 /// Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
91 #[serde(rename = "VirtualSize")]
92 pub virtual_size: Option<i64>,
93}