redfish_codegen/models/telemetry_service/v1_3_2/
collection_function.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// An operation to perform over the sample.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum CollectionFunction {
7    /// An averaging function.
8    Average,
9    /// A maximum function.
10    Maximum,
11    /// A minimum function.
12    Minimum,
13    /// A summation function.
14    Summation,
15}
16
17#[allow(clippy::derivable_impls)]
18impl Default for CollectionFunction {
19     fn default() -> CollectionFunction {
20        CollectionFunction::Average
21     }
22}
23
24impl crate::Metadata<'static> for CollectionFunction {
25    const JSON_SCHEMA: &'static str = "TelemetryService.v1_3_2.json";
26}