#[non_exhaustive]pub struct SourceDefinition {
pub name: String,
pub version: u32,
pub framing: Framing,
pub decoding: Decoding,
pub nil: Vec<String>,
pub common: BTreeMap<String, FieldSpec>,
pub kinds: Vec<KindDefinition>,
}Expand description
A source definition as written.
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.name: StringThe source’s name, such as sysmon.
version: u32Increased whenever the output for some input changes, so a stored event can be traced to the definition that produced it.
framing: FramingHow a byte stream splits into records.
decoding: DecodingHow a record becomes a field map.
nil: Vec<String>Values a source writes for a field it has no value for, such as
Windows’ -. A field whose source holds one is not written, as if
the source had left it out; the value is still kept under
unmapped where the kind keeps the object it is in.
common: BTreeMap<String, FieldSpec>Fields every kind writes, such as the time and the device.
kinds: Vec<KindDefinition>The kinds of record the source produces, tried in order.
Trait Implementations§
Source§impl Clone for SourceDefinition
impl Clone for SourceDefinition
Source§impl Debug for SourceDefinition
impl Debug for SourceDefinition
Source§impl<'de> Deserialize<'de> for SourceDefinition
impl<'de> Deserialize<'de> for SourceDefinition
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 PartialEq for SourceDefinition
impl PartialEq for SourceDefinition
impl StructuralPartialEq for SourceDefinition
Auto Trait Implementations§
impl Freeze for SourceDefinition
impl RefUnwindSafe for SourceDefinition
impl Send for SourceDefinition
impl Sync for SourceDefinition
impl Unpin for SourceDefinition
impl UnsafeUnpin for SourceDefinition
impl UnwindSafe for SourceDefinition
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