pub enum ReplicationFilter {
DocIds(Vec<String>),
Selector(Value),
Custom(Arc<dyn Fn(&ChangeEvent) -> bool + Send + Sync>),
}Expand description
Filter for selective replication.
Variants§
DocIds(Vec<String>)
Replicate only these document IDs.
Selector(Value)
Replicate documents matching a Mango selector.
Custom(Arc<dyn Fn(&ChangeEvent) -> bool + Send + Sync>)
Replicate documents passing a custom predicate. Receives the ChangeEvent (id, deleted, seq).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplicationFilter
impl !RefUnwindSafe for ReplicationFilter
impl Send for ReplicationFilter
impl Sync for ReplicationFilter
impl Unpin for ReplicationFilter
impl !UnwindSafe for ReplicationFilter
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