redfish-codegen 0.3.1

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


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum CertificateMappingAttribute {
    /// This value shall indicate the service matches the entire certificate with a Certificate resource subordinate to a ManagerAccount resource or the entire certificate matches the appropriate field from an external account provider.
    Whole,
    /// This value shall indicate the service matches the RFC5280-defined 'commonName' attribute in the provided certificate to the UserName property in a ManagerAccount resource or the appropriate field from an external account provider.
    CommonName,
    /// This value shall indicate the service matches the User Principal Name (UPN) field in the provided certificate to the UserName property in a ManagerAccount resource or the appropriate field from an external account provider.
    UserPrincipalName,
}

#[allow(clippy::derivable_impls)]
impl Default for CertificateMappingAttribute {
     fn default() -> CertificateMappingAttribute {
        CertificateMappingAttribute::Whole
     }
}

impl crate::Metadata<'static> for CertificateMappingAttribute {
    const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
}