podman-rest-client 0.13.0

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