redfish_codegen/models/manager_network_protocol/v1_9_1/
protocol.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The settings for a network protocol associated with a manager.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Protocol {
9    /// The protocol port.
10    #[serde(rename = "Port")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub port: Option<i64>,
13    /// An indication of whether the protocol is enabled.
14    #[serde(rename = "ProtocolEnabled")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub protocol_enabled: Option<bool>,
17}
18
19impl crate::Metadata<'static> for Protocol {
20    const JSON_SCHEMA: &'static str = "ManagerNetworkProtocol.v1_9_1.json";
21}