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;

/// Information about a single communication channel or session between two components.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SingleSessionInfo {
    /// The identifier for an active session or communication channel between two components.
    #[serde(rename = "SessionId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub session_id: Option<i64>,
    #[serde(rename = "SessionType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub session_type: Option<models::component_integrity::v1_2_1::SecureSessionType>,
}

impl crate::Metadata<'static> for SingleSessionInfo {
    const JSON_SCHEMA: &'static str = "ComponentIntegrity.v1_2_1.json";
}