#[non_exhaustive]pub struct NdjsonOptions {
pub pretty: bool,
pub include_packets: bool,
pub include_started: bool,
pub include_anomalies: bool,
pub include_established: bool,
pub include_ticks: bool,
}Available on crate features
emit-ndjson and emit only.Expand description
Options for FlowEventNdjsonWriter.
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.pretty: boolPretty-print one indented JSON per event (default false).
NOTE: pretty-printed output is NOT valid NDJSON — each record spans multiple lines. Use only for human inspection.
include_packets: boolInclude FlowEvent::Packet rows (high volume; off by
default).
include_started: boolInclude FlowEvent::Started rows (default false).
include_anomalies: boolInclude FlowEvent::FlowAnomaly / TrackerAnomaly rows
(default true).
include_established: boolInclude FlowEvent::Established rows (default false).
include_ticks: boolInclude FlowEvent::Tick rows (default false).
Trait Implementations§
Source§impl Clone for NdjsonOptions
impl Clone for NdjsonOptions
Source§fn clone(&self) -> NdjsonOptions
fn clone(&self) -> NdjsonOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NdjsonOptions
Source§impl Debug for NdjsonOptions
impl Debug for NdjsonOptions
Source§impl Default for NdjsonOptions
impl Default for NdjsonOptions
Source§fn default() -> NdjsonOptions
fn default() -> NdjsonOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NdjsonOptions
impl RefUnwindSafe for NdjsonOptions
impl Send for NdjsonOptions
impl Sync for NdjsonOptions
impl Unpin for NdjsonOptions
impl UnsafeUnpin for NdjsonOptions
impl UnwindSafe for NdjsonOptions
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