podman_client/models/podman/common/
manifest_platform.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize)]
6pub struct ManifestPlatform {
7 pub architecture: String,
8 pub features: Vec<String>,
9 pub os: String,
10 #[serde(rename = "os.features")]
11 pub os_features: Vec<String>,
12 #[serde(rename = "os.version")]
13 pub os_version: String,
14 pub variant: String,
15}
16
17impl fmt::Debug for ManifestPlatform {
18 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
19 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
20 f.write_str(&json)
21 }
22}