pub trait Mapper: Send + Sync {
// Required method
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;
}Expand description
Specialized mapper for the final stage of the pipeline
Required Methods§
Sourcefn 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