podman_client/models/podman/common/
id_map.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize)]
6pub struct IdMap {
7    pub container_id: u32,
8    pub host_id: u32,
9    pub size: u32,
10}
11
12impl fmt::Debug for IdMap {
13    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14        let json = serde_json::to_string_pretty(self).map_err(|_| fmt::Error)?;
15        f.write_str(&json)
16    }
17}