pub struct JsonDecoder { /* private fields */ }Expand description
JSON Decoder
Implementations§
Source§impl JsonDecoder
impl JsonDecoder
pub fn new(options: JsonDecoderOptions, schema: Arc<Schema>) -> Self
Trait Implementations§
Source§impl Debug for JsonDecoder
impl Debug for JsonDecoder
Source§impl Decoder for JsonDecoder
impl Decoder for JsonDecoder
Source§fn decode(
&self,
data: &[u8],
metadata: ArcEventMetadata,
) -> EncodeResult<EventBatch>
fn decode( &self, data: &[u8], metadata: ArcEventMetadata, ) -> EncodeResult<EventBatch>
Decodes bytes into an
EventBatch.
The caller must provide the starting metadata for the batch (e.g., source ID, ingestion time).Auto Trait Implementations§
impl Freeze for JsonDecoder
impl RefUnwindSafe for JsonDecoder
impl Send for JsonDecoder
impl Sync for JsonDecoder
impl Unpin for JsonDecoder
impl UnsafeUnpin for JsonDecoder
impl UnwindSafe for JsonDecoder
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