podman_client/models/podman/common/
namespace.rs

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