podman_client/models/podman/common/
inspect_host_port.rs

1use core::fmt;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Serialize)]
6#[serde(rename_all = "PascalCase")]
7pub struct InspectHostPort {
8    pub host_ip: String,
9    pub host_port: String,
10}
11
12impl fmt::Debug for InspectHostPort {
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}