pub struct FormatRule {
pub pattern: String,
pub format: String,
}Expand description
A format detection rule from event-formats.toml.
Fields§
§pattern: StringGlob pattern to match against command string.
format: StringFormat to use if pattern matches.
Trait Implementations§
Source§impl Clone for FormatRule
impl Clone for FormatRule
Source§fn clone(&self) -> FormatRule
fn clone(&self) -> FormatRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatRule
impl Debug for FormatRule
Source§impl<'de> Deserialize<'de> for FormatRule
impl<'de> Deserialize<'de> for FormatRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormatRule
impl RefUnwindSafe for FormatRule
impl Send for FormatRule
impl Sync for FormatRule
impl Unpin for FormatRule
impl UnsafeUnpin for FormatRule
impl UnwindSafe for FormatRule
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