redfish-codegen 0.3.1

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


/// The location information for a Message Registry file.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Location {
    /// If the service hosts the Message Registry in an archive file, the name of the file within the archive.
    #[serde(rename = "ArchiveFile")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive_file: Option<String>,
    /// If the Message Registry is hosted on the service in an archive file, the link to the archive file.
    #[serde(rename = "ArchiveUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive_uri: Option<String>,
    /// The language code for the Message Registry file.
    #[serde(rename = "Language")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub language: Option<String>,
    /// The link to publicly available (canonical) URI for the Message Registry.
    #[serde(rename = "PublicationUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub publication_uri: Option<String>,
    /// The link to locally available URI for the Message Registry.
    #[serde(rename = "Uri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}

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