redfish_codegen/models/certificate/v1_7_0/
identifier.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The identifier information about a certificate.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Identifier {
9    /// Additional common names of the entity.
10    #[serde(rename = "AdditionalCommonNames")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub additional_common_names: Option<Vec<String>>,
13    /// Additional organizational units of the entity.
14    #[serde(rename = "AdditionalOrganizationalUnits")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub additional_organizational_units: Option<Vec<String>>,
17    /// The additional host names of the entity.
18    #[serde(rename = "AlternativeNames")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub alternative_names: Option<Vec<String>>,
21    /// The city or locality of the organization of the entity.
22    #[serde(rename = "City")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub city: Option<String>,
25    /// The common name of the entity.
26    #[serde(rename = "CommonName")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub common_name: Option<String>,
29    /// The country of the organization of the entity.
30    #[serde(rename = "Country")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub country: Option<String>,
33    /// A human-readable string for this identifier.
34    #[serde(rename = "DisplayString")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub display_string: Option<String>,
37    /// The domain components of the entity.
38    #[serde(rename = "DomainComponents")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub domain_components: Option<Vec<String>>,
41    /// The email address of the contact within the organization of the entity.
42    #[serde(rename = "Email")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub email: Option<String>,
45    /// The name of the organization of the entity.
46    #[serde(rename = "Organization")]
47    #[serde(default, skip_serializing_if = "Option::is_none")]
48    pub organization: Option<String>,
49    /// The name of the unit or division of the organization of the entity.
50    #[serde(rename = "OrganizationalUnit")]
51    #[serde(default, skip_serializing_if = "Option::is_none")]
52    pub organizational_unit: Option<String>,
53    /// The state, province, or region of the organization of the entity.
54    #[serde(rename = "State")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub state: Option<String>,
57}
58
59impl crate::Metadata<'static> for Identifier {
60    const JSON_SCHEMA: &'static str = "Certificate.v1_7_0.json";
61}