redfish-codegen 0.3.1

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


/// The information about virtual media service for this system.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct VirtualMediaConfig {
    /// The protocol port.
    #[serde(rename = "Port")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port: Option<i64>,
    /// An indication of whether the service is enabled for this system.
    #[serde(rename = "ServiceEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_enabled: Option<bool>,
}

impl crate::Metadata<'static> for VirtualMediaConfig {
    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_0.json";
}