redfish-codegen 0.3.1

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


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum IntrusionSensor {
    /// No abnormal physical security condition is detected at this time.
    Normal,
    /// A door, lock, or other mechanism protecting the internal system hardware from being accessed is detected to be in an insecure state.
    HardwareIntrusion,
    /// Physical tampering of the monitored entity is detected.
    TamperingDetected,
}

#[allow(clippy::derivable_impls)]
impl Default for IntrusionSensor {
     fn default() -> IntrusionSensor {
        IntrusionSensor::Normal
     }
}

impl crate::Metadata<'static> for IntrusionSensor {
    const JSON_SCHEMA: &'static str = "Chassis.v1_22_0.json";
}