redfish_codegen/models/resource/v1_16_0/
location.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The location of a resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Location {
10    /// The altitude of the resource in meters.
11    #[serde(rename = "AltitudeMeters")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub altitude_meters: Option<f64>,
14    /// An array of contact information.
15    #[serde(rename = "Contacts")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub contacts: Option<Vec<models::resource::v1_16_0::ContactInfo>>,
18    /// The location of the resource.
19    #[serde(rename = "Info")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub info: Option<String>,
22    /// The format of the Info property.
23    #[serde(rename = "InfoFormat")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub inf_of: Option<String>,
26    /// The latitude of the resource.
27    #[serde(rename = "Latitude")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub latitude: Option<f64>,
30    /// The longitude of the resource in degrees.
31    #[serde(rename = "Longitude")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub longitude: Option<f64>,
34    #[serde(rename = "Oem")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub oem: Option<models::resource::Oem>,
37    #[serde(rename = "PartLocation")]
38    #[serde(default, skip_serializing_if = "Option::is_none")]
39    pub part_location: Option<models::resource::v1_16_0::PartLocation>,
40    /// Human readable string to enable differentiation between PartLocation value for parts in the same enclosure, which might include hierarchical information of containing PartLocation values for the part.
41    #[serde(rename = "PartLocationContext")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub part_location_context: Option<String>,
44    #[serde(rename = "Placement")]
45    #[serde(default, skip_serializing_if = "Option::is_none")]
46    pub placement: Option<models::resource::v1_16_0::Placement>,
47    #[serde(rename = "PostalAddress")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub postal_address: Option<models::resource::v1_16_0::PostalAddress>,
50}
51
52impl crate::Metadata<'static> for Location {
53    const JSON_SCHEMA: &'static str = "Resource.v1_16_0.json";
54}