// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum FlowControl {
/// No IEEE 802.3x flow control is enabled on this port.
None,
/// IEEE 802.3x flow control may be initiated by this station.
TX,
/// IEEE 802.3x flow control may be initiated by the link partner.
RX,
/// IEEE 802.3x flow control may be initiated by this station or the link partner.
#[serde(rename = "TX_RX")]
TXRX,
}
#[allow(clippy::derivable_impls)]
impl Default for FlowControl {
fn default() -> FlowControl {
FlowControl::None
}
}
impl crate::Metadata<'static> for FlowControl {
const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
}