Skip to main content

clientapi_pve/models/
nodes_sdn_interfaces_response_data_inner.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NodesSdnInterfacesResponseDataInner {
16
17    /// The name of the network interface.
18    #[serde(rename = "name")]
19    pub name: String,
20
21    /// The current state of the interface.
22    #[serde(rename = "state")]
23    pub state: String,
24
25    /// The type of this interface in the fabric (e.g. Point-to-Point, Broadcast, ..).
26    #[serde(rename = "type")]
27    pub r#type: String,
28
29
30}
31
32impl NodesSdnInterfacesResponseDataInner {
33    pub fn new(name: String, state: String, r#type: String) -> NodesSdnInterfacesResponseDataInner {
34        NodesSdnInterfacesResponseDataInner {
35            
36            name,
37            
38            state,
39            
40            r#type,
41            
42        }
43    }
44}
45
46