redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// The location of a resource.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Location {
    /// The location of the resource.
    #[serde(rename = "Info")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub info: Option<String>,
    /// The format of the Info property.
    #[serde(rename = "InfoFormat")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inf_of: Option<String>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
}

impl crate::Metadata<'static> for Location {
    const JSON_SCHEMA: &'static str = "Resource.v1_1_15.json";
}