pub struct Selector { /* private fields */ }Expand description
Selector filters the stream to include only relevant frames typically matching a specific JSON path (e.g., “choices.0.delta”)
Implementations§
Trait Implementations§
Source§impl Transform for Selector
impl Transform for Selector
Source§fn transform<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transform<'life0, 'async_trait>(
&'life0 self,
input: BoxStream<'static, Value>,
) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
A transform takes a stream of JSON values and returns a new stream of JSON values
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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