#[non_exhaustive]pub struct SyslogRule {
pub facility: String,
pub severity: String,
}Expand description
A <facility> <severity> line selecting which messages go to a syslog destination.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.facility: Stringe.g. "any", "authorization", "interactive-commands".
severity: Stringe.g. "info", "notice", "any", "none".
Trait Implementations§
Source§impl Clone for SyslogRule
impl Clone for SyslogRule
Source§impl Debug for SyslogRule
impl Debug for SyslogRule
impl Eq for SyslogRule
Source§impl PartialEq for SyslogRule
impl PartialEq for SyslogRule
impl StructuralPartialEq for SyslogRule
Auto Trait Implementations§
impl Forget for SyslogRule
impl Freeze for SyslogRule
impl Move for SyslogRule
impl RefUnwindSafe for SyslogRule
impl Send for SyslogRule
impl Sync for SyslogRule
impl Unpin for SyslogRule
impl UnsafeUnpin for SyslogRule
impl UnwindSafe for SyslogRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more