podman_client/models/podman/manifests/
push_list_to_registry.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5pub struct ManifestPushListToRegistryOptions<'a> {
6    pub destination: &'a str,
7    pub name: &'a str,
8    pub add_compression: Option<Vec<&'a str>>,
9    pub all: Option<bool>,
10    pub force_compression_format: Option<bool>,
11    pub quiet: Option<bool>,
12    pub tls_verify: Option<bool>,
13}
14
15#[derive(Deserialize, Serialize)]
16#[serde(rename_all = "PascalCase")]
17pub struct ManifestPushListToRegistry {
18    pub id: String,
19}
20
21impl fmt::Debug for ManifestPushListToRegistry {
22    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23        let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
24        f.write_str(&json)
25    }
26}