redfish_codegen/models/resource/v1_2_14/
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 location of the resource.
11    #[serde(rename = "Info")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub info: Option<String>,
14    /// The format of the Info property.
15    #[serde(rename = "InfoFormat")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub inf_of: Option<String>,
18    #[serde(rename = "Oem")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub oem: Option<models::resource::Oem>,
21}
22
23impl crate::Metadata<'static> for Location {
24    const JSON_SCHEMA: &'static str = "Resource.v1_2_14.json";
25}