pub struct ChangesStreamOptions {
pub since: Seq,
pub live: bool,
pub include_docs: bool,
pub doc_ids: Option<Vec<String>>,
pub selector: Option<Value>,
pub limit: Option<u64>,
pub conflicts: bool,
pub style: ChangesStyle,
pub filter: Option<ChangesFilter>,
pub poll_interval: Duration,
pub timeout: Option<Duration>,
pub heartbeat: Option<Duration>,
}Expand description
Configuration for a changes stream.
Fields§
§since: Seq§live: bool§include_docs: bool§doc_ids: Option<Vec<String>>§selector: Option<Value>§limit: Option<u64>§conflicts: boolInclude conflicting revisions per change event.
style: ChangesStyleChanges style: MainOnly (default) or AllDocs.
filter: Option<ChangesFilter>A filter function applied post-fetch to each change event.
poll_interval: DurationPolling interval for live mode when no broadcast channel is available.
timeout: Option<Duration>How long to keep the connection open before closing in live mode.
heartbeat: Option<Duration>Interval for heartbeat signals in live mode (prevents connection timeout).
Trait Implementations§
Source§impl Clone for ChangesStreamOptions
impl Clone for ChangesStreamOptions
Source§fn clone(&self) -> ChangesStreamOptions
fn clone(&self) -> ChangesStreamOptions
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 ChangesStreamOptions
impl Debug for ChangesStreamOptions
Auto Trait Implementations§
impl Freeze for ChangesStreamOptions
impl !RefUnwindSafe for ChangesStreamOptions
impl Send for ChangesStreamOptions
impl Sync for ChangesStreamOptions
impl Unpin for ChangesStreamOptions
impl !UnwindSafe for ChangesStreamOptions
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