pub struct ChangeStreamPipeline {
pub stages: Vec<PipelineStage>,
}Expand description
A pipeline stage for filtering Change Stream events.
Fields§
§stages: Vec<PipelineStage>Pipeline stages.
Implementations§
Source§impl ChangeStreamPipeline
impl ChangeStreamPipeline
Sourcepub fn match_stage(self, filter: Value) -> Self
pub fn match_stage(self, filter: Value) -> Self
Add a $match stage to filter events.
Sourcepub fn operation_types(self, types: &[ChangeType]) -> Self
pub fn operation_types(self, types: &[ChangeType]) -> Self
Filter by operation type(s).
Trait Implementations§
Source§impl Clone for ChangeStreamPipeline
impl Clone for ChangeStreamPipeline
Source§fn clone(&self) -> ChangeStreamPipeline
fn clone(&self) -> ChangeStreamPipeline
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangeStreamPipeline
impl Debug for ChangeStreamPipeline
Source§impl Default for ChangeStreamPipeline
impl Default for ChangeStreamPipeline
Source§impl<'de> Deserialize<'de> for ChangeStreamPipeline
impl<'de> Deserialize<'de> for ChangeStreamPipeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChangeStreamPipeline
impl RefUnwindSafe for ChangeStreamPipeline
impl Send for ChangeStreamPipeline
impl Sync for ChangeStreamPipeline
impl Unpin for ChangeStreamPipeline
impl UnwindSafe for ChangeStreamPipeline
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