redfish-codegen 0.3.1

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


/// The details and coefficients used to operate a control loop.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ControlLoop {
    /// The date and time that the control loop coefficients were changed.
    #[serde(rename = "CoefficientUpdateTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub coefficient_update_time: Option<String>,
    /// The differential coefficient.
    #[serde(rename = "Differential")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub differential: Option<f64>,
    /// The integral coefficient.
    #[serde(rename = "Integral")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub integral: Option<f64>,
    /// The proportional coefficient.
    #[serde(rename = "Proportional")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub proportional: Option<f64>,
}

impl crate::Metadata<'static> for ControlLoop {
    const JSON_SCHEMA: &'static str = "Control.v1_2_0.json";
}