redfish-codegen 0.3.1

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


/// A single Trusted Computing Group TPM measurement.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct TPMsingleMeasurement {
    /// The date and time when information for the measurement was last updated.
    #[serde(rename = "LastUpdated")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_updated: Option<String>,
    /// The measurement data.
    #[serde(rename = "Measurement")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement: Option<String>,
    /// The hash algorithm used to compute the measurement.
    #[serde(rename = "MeasurementHashAlgorithm")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement_hash_algorithm: Option<String>,
    /// The Platform Configuration Register (PCR) bank of the measurement.
    #[serde(rename = "PCR")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcr: Option<i64>,
}

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