redfish_codegen/models/metric_definition/v1_3_2/
calculable.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The types of calculations that can be applied to the metric reading.  Provides information to the client on the suitability of calculation using the metric reading.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum Calculable {
7    /// No calculations should be performed on the metric reading.
8    NonCalculatable,
9    /// The sum of the metric reading across multiple instances is meaningful.
10    Summable,
11    /// The sum of the metric reading across multiple instances is not meaningful.
12    NonSummable,
13}
14
15#[allow(clippy::derivable_impls)]
16impl Default for Calculable {
17     fn default() -> Calculable {
18        Calculable::NonCalculatable
19     }
20}
21
22impl crate::Metadata<'static> for Calculable {
23    const JSON_SCHEMA: &'static str = "MetricDefinition.v1_3_2.json";
24}