redfish-codegen 0.3.1

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


/// The DSP0274-defined measurement block information.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct MeasurementBlock {
    /// The hexadecimal string representation of the numeric value of the DSP0274-defined Measurement field  of the measurement block.
    #[serde(rename = "Measurement")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement: Option<String>,
    /// The DSP0274-defined Index field of the measurement block.
    #[serde(rename = "MeasurementIndex")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement_index: Option<i64>,
    /// The DSP0274-defined MeasurementSize field of the measurement block.
    #[serde(rename = "MeasurementSize")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement_size: Option<i64>,
    /// The DSP0274-defined MeasurementSpecification field of the measurement block.
    #[serde(rename = "MeasurementSpecification")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub measurement_specification: Option<i64>,
}

impl crate::Metadata<'static> for MeasurementBlock {
    const JSON_SCHEMA: &'static str = "SoftwareInventory.v1_9_0.json";
}