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 DataDirection {
    /// Indicates that this limit is enforced on packets and bytes received by the network device function.
    Ingress,
    /// Indicates that this limit is enforced on packets and bytes transmitted by the network device function.
    Egress,
}

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

impl crate::Metadata<'static> for DataDirection {
    const JSON_SCHEMA: &'static str = "AllowDeny.v1_0_0.json";
}