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 EventDestinationProtocol {
    /// This value shall indicate the destination follows the Redfish Specification for event notifications.  Destinations requesting EventFormatType of `Event` shall receive a Redfish resource of type Event.  Destinations requesting EventFormatType of `MetricReport` shall receive a Redfish resource of type MetricReport.
    Redfish,
    /// This value shall indicate the destination follows the Apache-defined Kafka protocol as defined by the Kafka Protocol Guide.  The Context property shall contain the Kafka topic of the destination broker. Added in version v1_13_0.
    Kafka,
    /// This value shall indicate the destination follows the RFC1157-defined SNMPv1 protocol. Added in version v1_7_0.
    SNMPv1,
    /// This value shall indicate the destination follows the SNMPv2c protocol as defined by RFC1441 and RFC1452. Added in version v1_7_0.
    #[serde(rename = "SNMPv2c")]
    SNMPv2,
    /// This value shall indicate the destination follows the SNMPv3 protocol as defined by RFC3411 and RFC3418. Added in version v1_7_0.
    SNMPv3,
    /// This value shall indicate the destination follows the RFC5321-defined SMTP specification. Added in version v1_7_0.
    SMTP,
    /// This value shall indicate the destination follows the TLS-based transport for syslog as defined in RFC5424. Added in version v1_9_0.
    SyslogTLS,
    /// This value shall indicate the destination follows the TCP-based transport for syslog as defined in RFC6587. Added in version v1_9_0.
    SyslogTCP,
    /// This value shall indicate the destination follows the UDP-based transport for syslog as defined in RFC5424. Added in version v1_9_0.
    SyslogUDP,
    /// This value shall indicate the destination follows the Reliable Event Logging Protocol (RELP) transport for syslog as defined by www.rsyslog.com. Added in version v1_9_0.
    SyslogRELP,
    /// This value shall indicate an OEM specific protocol.  The OEMProtocol property shall contain the specific OEM event destination protocol. Added in version v1_9_0.
    OEM,
}

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

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