podman_rest_client/v5/models/
port.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Port An open port on a container
4pub struct Port {
5    /// Host IP address that the container's port is mapped to
6    #[serde(rename = "IP")]
7    pub ip: Option<String>,
8    /// Port on the container
9    #[serde(rename = "PrivatePort")]
10    pub private_port: u16,
11    /// Port exposed on the host
12    #[serde(rename = "PublicPort")]
13    pub public_port: Option<u16>,
14    /// type
15    #[serde(rename = "Type")]
16    pub r#type: String,
17}