redfish-codegen 0.3.1

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


/// The usages of a key contained within a certificate.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum KeyUsage {
    /// Verifies digital signatures, other than signatures on certificates and CRLs.
    DigitalSignature,
    /// Verifies digital signatures, other than signatures on certificates and CRLs, and provides a non-repudiation service that protects against the signing entity falsely denying some action.
    NonRepudiation,
    /// Enciphers private or secret keys.
    KeyEncipherment,
    /// Directly enciphers raw user data without an intermediate symmetric cipher.
    DataEncipherment,
    /// Key agreement.
    KeyAgreement,
    /// Verifies signatures on public key certificates.
    KeyCertSign,
    /// Verifies signatures on certificate revocation lists (CRLs).
    CRLSigning,
    /// Enciphers data while performing a key agreement.
    EncipherOnly,
    /// Deciphers data while performing a key agreement.
    DecipherOnly,
    /// TLS WWW server authentication.
    ServerAuthentication,
    /// TLS WWW client authentication.
    ClientAuthentication,
    /// Signs downloadable executable code.
    CodeSigning,
    /// Email protection.
    EmailProtection,
    /// Binds the hash of an object to a time.
    Timestamping,
    /// Signs OCSP responses.
    OCSPSigning,
}

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

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