redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// Information about communication between two components.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct TPMcommunication {
    /// The active sessions or communication channels between two components.
    #[serde(rename = "Sessions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sessions: Option<Vec<models::component_integrity::v1_2_1::SingleSessionInfo>>,
}

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