pub struct RuleBasedEventMapper { /* private fields */ }Implementations§
Source§impl RuleBasedEventMapper
impl RuleBasedEventMapper
pub fn new(rules: &[EventMapRule]) -> Result<Self, PipelineError>
Trait Implementations§
Source§impl Mapper for RuleBasedEventMapper
impl Mapper for RuleBasedEventMapper
Source§fn map<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, StreamingEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn map<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, StreamingEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
A mapper takes a stream of JSON values and returns a stream of unified events
Auto Trait Implementations§
impl Freeze for RuleBasedEventMapper
impl RefUnwindSafe for RuleBasedEventMapper
impl Send for RuleBasedEventMapper
impl Sync for RuleBasedEventMapper
impl Unpin for RuleBasedEventMapper
impl UnwindSafe for RuleBasedEventMapper
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