redfish-codegen 0.3.1

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

use crate::models;

/// The information about a graphical console service that this manager provides.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct GraphicalConsole {
    /// This property enumerates the graphical console connection types that the implementation allows.
    #[serde(rename = "ConnectTypesSupported")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connect_types_supported: Option<Vec<models::manager::v1_17_0::GraphicalConnectTypesSupported>>,
    /// The maximum number of service sessions, regardless of protocol, that this manager can support.
    #[serde(rename = "MaxConcurrentSessions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_concurrent_sessions: Option<i64>,
    /// An indication of whether the service is enabled for this manager.
    #[serde(rename = "ServiceEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_enabled: Option<bool>,
}

impl crate::Metadata<'static> for GraphicalConsole {
    const JSON_SCHEMA: &'static str = "Manager.v1_17_0.json";
}