pub struct JsonEventParser { /* private fields */ }Expand description
JSON-based event parser implementation.
Implementations§
Source§impl JsonEventParser
impl JsonEventParser
Sourcepub fn new(
config: ParsingConfig,
event_kind: EventKind,
source_name: String,
) -> Self
pub fn new( config: ParsingConfig, event_kind: EventKind, source_name: String, ) -> Self
Create a new JSON event parser
Trait Implementations§
Source§impl EventParser for JsonEventParser
impl EventParser for JsonEventParser
Source§fn parse<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = EventResult<Vec<Box<dyn Event>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn parse<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = EventResult<Vec<Box<dyn Event>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Parse events from input data
Source§fn can_parse(&self, input: &Self::Input) -> bool
fn can_parse(&self, input: &Self::Input) -> bool
Check if this parser can handle the given input
Source§fn info(&self) -> ParserInfo
fn info(&self) -> ParserInfo
Get parser configuration information
Auto Trait Implementations§
impl Freeze for JsonEventParser
impl RefUnwindSafe for JsonEventParser
impl Send for JsonEventParser
impl Sync for JsonEventParser
impl Unpin for JsonEventParser
impl UnsafeUnpin for JsonEventParser
impl UnwindSafe for JsonEventParser
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