redfish_codegen/models/computer_system/v1_20_1/
host_graphical_console.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The information about a graphical console service for this system.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct HostGraphicalConsole {
10    /// This property enumerates the graphical console connection types that the implementation allows.
11    #[serde(rename = "ConnectTypesSupported")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub connect_types_supported: Option<Vec<models::computer_system::v1_20_1::GraphicalConnectTypesSupported>>,
14    /// The maximum number of service sessions, regardless of protocol, that this system can support.
15    #[serde(rename = "MaxConcurrentSessions")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub max_concurrent_sessions: Option<i64>,
18    /// The protocol port.
19    #[serde(rename = "Port")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub port: Option<i64>,
22    /// An indication of whether the service is enabled for this system.
23    #[serde(rename = "ServiceEnabled")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub service_enabled: Option<bool>,
26}
27
28impl crate::Metadata<'static> for HostGraphicalConsole {
29    const JSON_SCHEMA: &'static str = "ComputerSystem.v1_20_1.json";
30}