podman_client/models/podman/manifests/
push_to_registry.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct ManifestPushToRegistryOptions<'a> {
7 pub name: &'a str,
8 pub all: Option<bool>,
9 pub destination: &'a str,
10}
11
12#[derive(Deserialize, Serialize)]
13#[serde(rename_all = "PascalCase")]
14pub struct ManifestPushToRegistry {
15 pub id: String,
16}
17
18impl fmt::Debug for ManifestPushToRegistry {
19 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
20 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
21 f.write_str(&json)
22 }
23}