pub struct LogSourceSelector {
pub category: Option<String>,
pub product: Option<String>,
pub service: Option<String>,
}Expand description
Selects rules by the log source they declare.
Every key given must equal the rule’s; keys left out match anything.
Fields§
§category: Option<String>A class of events, such as process_creation.
product: Option<String>A platform, such as windows.
service: Option<String>A specific log, such as sysmon.
Implementations§
Source§impl LogSourceSelector
impl LogSourceSelector
Sourcepub fn selects(&self, logsource: &LogSourceSelector) -> bool
pub fn selects(&self, logsource: &LogSourceSelector) -> bool
Reports whether this selector applies to a rule declaring logsource.
Trait Implementations§
Source§impl Clone for LogSourceSelector
impl Clone for LogSourceSelector
Source§impl Debug for LogSourceSelector
impl Debug for LogSourceSelector
Source§impl Default for LogSourceSelector
impl Default for LogSourceSelector
Source§impl<'de> Deserialize<'de> for LogSourceSelector
impl<'de> Deserialize<'de> for LogSourceSelector
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
Source§impl Display for LogSourceSelector
impl Display for LogSourceSelector
impl Eq for LogSourceSelector
Source§impl From<&LogSource> for LogSourceSelector
impl From<&LogSource> for LogSourceSelector
Source§impl PartialEq for LogSourceSelector
impl PartialEq for LogSourceSelector
Source§impl Serialize for LogSourceSelector
impl Serialize for LogSourceSelector
impl StructuralPartialEq for LogSourceSelector
Auto Trait Implementations§
impl Forget for LogSourceSelector
impl Freeze for LogSourceSelector
impl Move for LogSourceSelector
impl RefUnwindSafe for LogSourceSelector
impl Send for LogSourceSelector
impl Sync for LogSourceSelector
impl Unpin for LogSourceSelector
impl UnsafeUnpin for LogSourceSelector
impl UnwindSafe for LogSourceSelector
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