ory_client_client/models/port.rs
1/*
2 * Ory APIs
3 *
4 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5 *
6 * The version of the OpenAPI document: v0.0.1-alpha.1
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// Port : Port An open port on a container
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Port {
17 /// IP
18 #[serde(rename = "IP", skip_serializing_if = "Option::is_none")]
19 pub IP: Option<String>,
20 /// Port on the container
21 #[serde(rename = "PrivatePort")]
22 pub private_port: i32,
23 /// Port exposed on the host
24 #[serde(rename = "PublicPort", skip_serializing_if = "Option::is_none")]
25 pub public_port: Option<i32>,
26 /// type
27 #[serde(rename = "Type")]
28 pub _type: String,
29}
30
31impl Port {
32 /// Port An open port on a container
33 pub fn new(private_port: i32, _type: String) -> Port {
34 Port {
35 IP: None,
36 private_port,
37 public_port: None,
38 _type,
39 }
40 }
41}
42
43