redfish_codegen/models/port/v1_9_0/
flow_control.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum FlowControl {
6    /// No IEEE 802.3x flow control is enabled on this port.
7    None,
8    /// IEEE 802.3x flow control may be initiated by this station.
9    TX,
10    /// IEEE 802.3x flow control may be initiated by the link partner.
11    RX,
12    /// IEEE 802.3x flow control may be initiated by this station or the link partner.
13    #[serde(rename = "TX_RX")]
14    TXRX,
15}
16
17#[allow(clippy::derivable_impls)]
18impl Default for FlowControl {
19     fn default() -> FlowControl {
20        FlowControl::None
21     }
22}
23
24impl crate::Metadata<'static> for FlowControl {
25    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
26}