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 DataBits {
    /// Five bits of data following the start bit.
    #[serde(rename = "5")]
    _5,
    /// Six bits of data following the start bit.
    #[serde(rename = "6")]
    _6,
    /// Seven bits of data following the start bit.
    #[serde(rename = "7")]
    _7,
    /// Eight bits of data following the start bit.
    #[serde(rename = "8")]
    _8,
}

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

impl crate::Metadata<'static> for DataBits {
    const JSON_SCHEMA: &'static str = "SerialInterface.v1_1_8.json";
}