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 TeamMode {
    /// No teaming.
    None,
    /// Packets are transmitted in sequential order from the teamed interfaces.
    RoundRobin,
    /// One interface in the team is active and the others are kept in standby until a failure occurs.
    ActiveBackup,
    /// Transmitting is determined based upon a hash policy.
    XOR,
    /// Packets are transmitted on all interfaces in the team.
    Broadcast,
    /// The interfaces in the team create an IEEE802.3ad link aggregation group.
    #[serde(rename = "IEEE802_3ad")]
    IEEE8023,
    /// Packets are transmitted based upon the current load of each interface in the team.
    AdaptiveTransmitLoadBalancing,
    /// Packets are transmitted and received based upon the current load of each interface in the team.
    AdaptiveLoadBalancing,
}

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

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