podman_client/models/podman/common/
image_volume.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize, Default)]
6#[serde(rename_all = "PascalCase")]
7pub struct ImageVolume {
8 pub destination: Option<String>,
9 pub read_write: Option<bool>,
10 pub source: Option<String>,
11 #[serde(rename = "subPath")]
12 pub sub_path: Option<String>,
13}
14
15impl fmt::Debug for ImageVolume {
16 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
17 let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
18 f.write_str(&json)
19 }
20}