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 a serial console service that this system provides.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SerialConsoleProtocol {
    /// The command string passed to the service to select or enter the system's serial console.
    #[serde(rename = "ConsoleEntryCommand")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub console_entry_command: Option<String>,
    /// The hotkey sequence available for the user to exit the serial console session.
    #[serde(rename = "HotKeySequenceDisplay")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub hot_key_sequence_display: Option<String>,
    /// 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>,
    /// Indicates whether the serial console service is shared with access to the manager's command-line interface (CLI).
    #[serde(rename = "SharedWithManagerCLI")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub shared_with_manager_cli: Option<bool>,
}

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