redfish-codegen 0.3.1

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


/// Location information for a schema file.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Location {
    /// The name of the file in the archive, if the schema is hosted on the service in an archive file.
    #[serde(rename = "ArchiveFile")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive_file: Option<String>,
    /// The link to an archive file, if the schema is hosted on the service in an archive file.
    #[serde(rename = "ArchiveUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub archive_uri: Option<String>,
    /// The language code for the schema file.
    #[serde(rename = "Language")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub language: Option<String>,
    /// The link to publicly available (canonical) URI for schema.
    #[serde(rename = "PublicationUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub publication_uri: Option<String>,
    /// The link to locally available URI for schema.
    #[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 = "JsonSchemaFile.v1_1_4.json";
}