podman_client/models/podman/images/
copy.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Default)]
6pub struct ImageCopyOptions<'a> {
7    pub name: &'a str,
8    pub destination: Option<&'a str>,
9    pub quite: Option<bool>,
10}
11
12#[derive(Deserialize, Serialize)]
13#[serde(rename_all = "PascalCase")]
14pub struct ImageCopy {
15    pub id: String,
16}
17
18impl fmt::Debug for ImageCopy {
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}