redfish_codegen/models/computer_system/v1_20_1/
serial_console_protocol.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The information about a serial console service that this system provides.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct SerialConsoleProtocol {
9    /// The command string passed to the service to select or enter the system's serial console.
10    #[serde(rename = "ConsoleEntryCommand")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub console_entry_command: Option<String>,
13    /// The hotkey sequence available for the user to exit the serial console session.
14    #[serde(rename = "HotKeySequenceDisplay")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub hot_key_sequence_display: Option<String>,
17    /// The protocol port.
18    #[serde(rename = "Port")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub port: Option<i64>,
21    /// An indication of whether the service is enabled for this system.
22    #[serde(rename = "ServiceEnabled")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub service_enabled: Option<bool>,
25    /// Indicates whether the serial console service is shared with access to the manager's command-line interface (CLI).
26    #[serde(rename = "SharedWithManagerCLI")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub shared_with_manager_cli: Option<bool>,
29}
30
31impl crate::Metadata<'static> for SerialConsoleProtocol {
32    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
33}