redfish_codegen/models/metric_report_definition/v1_4_3/
links.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The links to other resources that are related to this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Links {
10    #[serde(rename = "Oem")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub oem: Option<models::resource::Oem>,
13    /// The triggers that cause this metric report definition to generate a new metric report upon a trigger occurrence when the TriggerActions property contains `RedfishMetricReport`.
14    #[serde(rename = "Triggers")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub triggers: Option<Vec<models::odata_v4::IdRef>>,
17    #[serde(rename = "Triggers@odata.count")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub triggers_odata_count: Option<models::odata_v4::Count>,
20}
21
22impl crate::Metadata<'static> for Links {
23    const JSON_SCHEMA: &'static str = "MetricReportDefinition.v1_4_3.json";
24}