redfish-codegen 0.3.1

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


/// The identifier information about a certificate.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Identifier {
    /// Additional common names of the entity.
    #[serde(rename = "AdditionalCommonNames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub additional_common_names: Option<Vec<String>>,
    /// Additional organizational units of the entity.
    #[serde(rename = "AdditionalOrganizationalUnits")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub additional_organizational_units: Option<Vec<String>>,
    /// The city or locality of the organization of the entity.
    #[serde(rename = "City")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The common name of the entity.
    #[serde(rename = "CommonName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub common_name: Option<String>,
    /// The country of the organization of the entity.
    #[serde(rename = "Country")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// A human-readable string for this identifier.
    #[serde(rename = "DisplayString")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub display_string: Option<String>,
    /// The domain components of the entity.
    #[serde(rename = "DomainComponents")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub domain_components: Option<Vec<String>>,
    /// The email address of the contact within the organization of the entity.
    #[serde(rename = "Email")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The name of the organization of the entity.
    #[serde(rename = "Organization")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub organization: Option<String>,
    /// The name of the unit or division of the organization of the entity.
    #[serde(rename = "OrganizationalUnit")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub organizational_unit: Option<String>,
    /// The state, province, or region of the organization of the entity.
    #[serde(rename = "State")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
}

impl crate::Metadata<'static> for Identifier {
    const JSON_SCHEMA: &'static str = "Certificate.v1_6_0.json";
}