redfish_codegen/models/json_schema_file/v1_1_4/
location.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Location information for a schema file.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Location {
9    /// The name of the file in the archive, if the schema is hosted on the service in an archive file.
10    #[serde(rename = "ArchiveFile")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub archive_file: Option<String>,
13    /// The link to an archive file, if the schema is hosted on the service in an archive file.
14    #[serde(rename = "ArchiveUri")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub archive_uri: Option<String>,
17    /// The language code for the schema file.
18    #[serde(rename = "Language")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub language: Option<String>,
21    /// The link to publicly available (canonical) URI for schema.
22    #[serde(rename = "PublicationUri")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub publication_uri: Option<String>,
25    /// The link to locally available URI for schema.
26    #[serde(rename = "Uri")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub uri: Option<String>,
29}
30
31impl crate::Metadata<'static> for Location {
32    const JSON_SCHEMA: &'static str = "JsonSchemaFile.v1_1_4.json";
33}