redfish_codegen/models/leak_detector/v1_0_0/
leak_detector.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The LeakDetector schema describes a state-based or digital value leak detector and its properties.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct LeakDetector {
10    #[serde(rename = "@odata.context")]
11    #[serde(skip_deserializing)]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub odata_context: Option<models::odata_v4::Context>,
14    #[serde(rename = "@odata.etag")]
15    #[serde(skip_deserializing)]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub odata_etag: Option<models::odata_v4::Etag>,
18    #[serde(rename = "@odata.id")]
19    #[serde(skip_deserializing)]
20    pub odata_id: models::odata_v4::Id,
21    #[serde(rename = "@odata.type")]
22    #[serde(skip_deserializing)]
23    #[derivative(Default(value = "models::odata_v4::Type(\"#LeakDetector.v1_0_0.LeakDetector\".to_string())"))]
24    pub odata_type: models::odata_v4::Type,
25    #[serde(rename = "Actions")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub actions: Option<models::leak_detector::v1_0_0::Actions>,
28    #[serde(rename = "Description")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub description: Option<models::resource::Description>,
31    #[serde(rename = "DetectorState")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub detector_state: Option<models::resource::Health>,
34    #[serde(rename = "Id")]
35    #[serde(skip_deserializing)]
36    pub id: models::resource::Id,
37    #[serde(rename = "LeakDetectorType")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub leak_detector_type: Option<models::leak_detector::v1_0_0::LeakDetectorType>,
40    #[serde(rename = "Location")]
41    #[serde(default, skip_serializing_if = "Option::is_none")]
42    pub location: Option<models::resource::Location>,
43    /// The manufacturer of this leak detector.
44    #[serde(rename = "Manufacturer")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub manufacturer: Option<String>,
47    /// The model number of the leak detector.
48    #[serde(rename = "Model")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub model: Option<String>,
51    #[serde(rename = "Name")]
52    #[serde(skip_deserializing)]
53    pub name: models::resource::Name,
54    #[serde(rename = "Oem")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub oem: Option<models::resource::Oem>,
57    /// The part number of the leak detector.
58    #[serde(rename = "PartNumber")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub part_number: Option<String>,
61    #[serde(rename = "PhysicalContext")]
62    #[serde(default, skip_serializing_if = "Option::is_none")]
63    pub physical_context: Option<models::physical_context::PhysicalContext>,
64    #[serde(rename = "PhysicalSubContext")]
65    #[serde(default, skip_serializing_if = "Option::is_none")]
66    pub physical_sub_context: Option<models::physical_context::PhysicalSubContext>,
67    /// The SKU of the leak detector.
68    #[serde(rename = "SKU")]
69    #[serde(default, skip_serializing_if = "Option::is_none")]
70    pub sku: Option<String>,
71    /// The time interval between readings of the physical leak detector.
72    #[serde(rename = "SensingFrequency")]
73    #[serde(default, skip_serializing_if = "Option::is_none")]
74    pub sensing_frequency: Option<f64>,
75    /// The serial number of the leak detector.
76    #[serde(rename = "SerialNumber")]
77    #[serde(default, skip_serializing_if = "Option::is_none")]
78    pub serial_number: Option<String>,
79    /// The spare part number of the leak detector.
80    #[serde(rename = "SparePartNumber")]
81    #[serde(default, skip_serializing_if = "Option::is_none")]
82    pub spare_part_number: Option<String>,
83    #[serde(rename = "Status")]
84    #[serde(default, skip_serializing_if = "Option::is_none")]
85    pub status: Option<models::resource::Status>,
86}
87
88impl crate::Metadata<'static> for LeakDetector {
89    const JSON_SCHEMA: &'static str = "LeakDetector.v1_0_0.json";
90}