redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The settings for a network protocol associated with a manager.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Protocol {
    /// The protocol port.
    #[serde(rename = "Port")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i64>,
    /// An indication of whether the protocol is enabled.
    #[serde(rename = "ProtocolEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub protocol_enabled: Option<bool>,
}

impl crate::Metadata<'static> for Protocol {
    const JSON_SCHEMA: &'static str = "ManagerNetworkProtocol.v1_9_1.json";
}