redfish_codegen/models/metric_definition/v1_3_2/implementation_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ImplementationType {
6 /// The metric is implemented as a physical sensor.
7 PhysicalSensor,
8 /// The metric is implemented by applying a calculation on another metric property. The calculation is specified in the CalculationAlgorithm property.
9 Calculated,
10 /// The metric is implemented by applying a calculation on one or more metric properties. The calculation is not provided.
11 Synthesized,
12 /// The metric is implemented as digital meter.
13 DigitalMeter,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for ImplementationType {
18 fn default() -> ImplementationType {
19 ImplementationType::PhysicalSensor
20 }
21}
22
23impl crate::Metadata<'static> for ImplementationType {
24 const JSON_SCHEMA: &'static str = "MetricDefinition.v1_3_2.json";
25}