redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// Days of the week.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum DayOfWeek {
    /// Monday.
    Monday,
    /// Tuesday.
    Tuesday,
    /// Wednesday.
    Wednesday,
    /// Thursday.
    Thursday,
    /// Friday.
    Friday,
    /// Saturday.
    Saturday,
    /// Sunday.
    Sunday,
    /// This value indicates that every day of the week has been selected.  When used in array properties, such as for enabling a function on certain days, it shall be the only member in the array.
    Every,
}

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

impl crate::Metadata<'static> for DayOfWeek {
    const JSON_SCHEMA: &'static str = "Schedule.v1_0_2.json";
}