redfish-codegen 0.3.1

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


/// The syslog facility code is an enumeration of program types.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum SyslogFacility {
    /// Kernel messages.
    Kern,
    /// User-level messages.
    User,
    /// Mail system.
    Mail,
    /// System daemons.
    Daemon,
    /// Security/authentication messages.
    Auth,
    /// Messages generated internally by syslogd.
    Syslog,
    /// Line printer subsystem.
    LPR,
    /// Network news subsystem.
    News,
    /// UUCP subsystem.
    UUCP,
    /// Clock daemon.
    Cron,
    /// Security/authentication messages.
    Authpriv,
    /// FTP daemon.
    FTP,
    /// NTP subsystem.
    NTP,
    /// Log audit.
    Security,
    /// Log alert.
    Console,
    /// Scheduling daemon.
    SolarisCron,
    /// Locally used facility 0.
    Local0,
    /// Locally used facility 1.
    Local1,
    /// Locally used facility 2.
    Local2,
    /// Locally used facility 3.
    Local3,
    /// Locally used facility 4.
    Local4,
    /// Locally used facility 5.
    Local5,
    /// Locally used facility 6.
    Local6,
    /// Locally used facility 7.
    Local7,
}

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

impl crate::Metadata<'static> for SyslogFacility {
    const JSON_SCHEMA: &'static str = "LogService.v1_4_0.json";
}