redfish_codegen/models/log_service/v1_4_0/syslog_facility.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The syslog facility code is an enumeration of program types.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum SyslogFacility {
7 /// Kernel messages.
8 Kern,
9 /// User-level messages.
10 User,
11 /// Mail system.
12 Mail,
13 /// System daemons.
14 Daemon,
15 /// Security/authentication messages.
16 Auth,
17 /// Messages generated internally by syslogd.
18 Syslog,
19 /// Line printer subsystem.
20 LPR,
21 /// Network news subsystem.
22 News,
23 /// UUCP subsystem.
24 UUCP,
25 /// Clock daemon.
26 Cron,
27 /// Security/authentication messages.
28 Authpriv,
29 /// FTP daemon.
30 FTP,
31 /// NTP subsystem.
32 NTP,
33 /// Log audit.
34 Security,
35 /// Log alert.
36 Console,
37 /// Scheduling daemon.
38 SolarisCron,
39 /// Locally used facility 0.
40 Local0,
41 /// Locally used facility 1.
42 Local1,
43 /// Locally used facility 2.
44 Local2,
45 /// Locally used facility 3.
46 Local3,
47 /// Locally used facility 4.
48 Local4,
49 /// Locally used facility 5.
50 Local5,
51 /// Locally used facility 6.
52 Local6,
53 /// Locally used facility 7.
54 Local7,
55}
56
57#[allow(clippy::derivable_impls)]
58impl Default for SyslogFacility {
59 fn default() -> SyslogFacility {
60 SyslogFacility::Kern
61 }
62}
63
64impl crate::Metadata<'static> for SyslogFacility {
65 const JSON_SCHEMA: &'static str = "LogService.v1_4_0.json";
66}