podman_client/models/podman/common/
inspect_mount.rs1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize)]
6#[serde(rename_all = "PascalCase")]
7pub struct InspectMount {
8 pub destination: String,
9 pub driver: String,
10 pub mode: String,
11 pub name: String,
12 pub options: Vec<String>,
13 pub propagation: String,
14 #[serde(rename = "RW")]
15 pub rw: bool,
16 pub source: String,
17 pub sub_path: String,
18 pub r#type: String,
19}
20
21impl fmt::Debug for InspectMount {
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}