podman_rest_client/v5/models/
platform.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Platform describes the platform which the image in the manifest runs on.
4pub struct Platform {
5    /// Architecture field specifies the CPU architecture, for example
6    /// `amd64` or `ppc64le`.
7    pub architecture: Option<String>,
8    /// OS specifies the operating system, for example `linux` or `windows`.
9    pub os: Option<String>,
10    /// OSFeatures is an optional field specifying an array of strings,
11    /// each listing a required OS feature (for example on Windows `win32k`).
12    #[serde(rename = "os.features")]
13    pub os_features: Option<Vec<String>>,
14    /// OSVersion is an optional field specifying the operating system
15    /// version, for example on Windows `10.0.14393.1066`.
16    #[serde(rename = "os.version")]
17    pub os_version: Option<String>,
18    /// Variant is an optional field specifying a variant of the CPU, for
19    /// example `v7` to specify ARMv7 when architecture is `arm`.
20    pub variant: Option<String>,
21}