pub struct SourceMapping {
pub logsource: LogSourceSelector,
pub class: BTreeMap<FieldPath, ClassValue>,
pub fields: BTreeMap<String, Vec<FieldPath>>,
}Expand description
How rules for one log source resolve.
Fields§
§logsource: LogSourceSelectorWhich rules this entry applies to.
class: BTreeMap<FieldPath, ClassValue>Attribute values an event must have for these rules to apply to it.
fields: BTreeMap<String, Vec<FieldPath>>Field names and the OCSF paths they resolve to. A field with several paths matches when any of them does.
Trait Implementations§
Source§impl Clone for SourceMapping
impl Clone for SourceMapping
Source§impl Debug for SourceMapping
impl Debug for SourceMapping
Source§impl<'de> Deserialize<'de> for SourceMapping
impl<'de> Deserialize<'de> for SourceMapping
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
impl Eq for SourceMapping
Source§impl PartialEq for SourceMapping
impl PartialEq for SourceMapping
Source§impl Serialize for SourceMapping
impl Serialize for SourceMapping
impl StructuralPartialEq for SourceMapping
Auto Trait Implementations§
impl Forget for SourceMapping
impl Freeze for SourceMapping
impl Move for SourceMapping
impl RefUnwindSafe for SourceMapping
impl Send for SourceMapping
impl Sync for SourceMapping
impl Unpin for SourceMapping
impl UnsafeUnpin for SourceMapping
impl UnwindSafe for SourceMapping
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