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 SNMPAuthenticationProtocols {
    /// This value shall indicate authentication is not required.
    None,
    /// This value shall indicate authentication using SNMP community strings and the value of TrapCommunity.
    CommunityString,
    /// This value shall indicate authentication conforms to the RFC3414-defined HMAC-MD5-96 authentication protocol.
    #[serde(rename = "HMAC_MD5")]
    HMACMD5,
    /// This value shall indicate authentication conforms to the RFC3414-defined HMAC-SHA-96 authentication protocol.
    #[serde(rename = "HMAC_SHA96")]
    HMACSHA96,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC128SHA224AuthProtocol.
    #[serde(rename = "HMAC128_SHA224")]
    HMAC128SHA224,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC192SHA256AuthProtocol.
    #[serde(rename = "HMAC192_SHA256")]
    HMAC192SHA256,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC256SHA384AuthProtocol.
    #[serde(rename = "HMAC256_SHA384")]
    HMAC256SHA384,
    /// This value shall indicate authentication for SNMPv3 access conforms to the RFC7860-defined usmHMAC384SHA512AuthProtocol.
    #[serde(rename = "HMAC384_SHA512")]
    HMAC384SHA512,
}

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

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