pub struct ChangeStreamOptions {
pub resume_after: Option<String>,
pub start_at_operation_time: Option<String>,
pub full_document: FullDocument,
pub full_document_before_change: FullDocumentBeforeChange,
pub max_await_time_ms: Option<u64>,
pub batch_size: Option<u32>,
}Expand description
Options for a Change Stream.
Fields§
§resume_after: Option<String>Only receive changes after this token.
start_at_operation_time: Option<String>Only receive changes after this timestamp.
full_document: FullDocumentWhether to return full document on update.
full_document_before_change: FullDocumentBeforeChangeWhether to return full document before the change.
max_await_time_ms: Option<u64>Maximum time to wait for new changes.
batch_size: Option<u32>Batch size for results.
Trait Implementations§
Source§impl Clone for ChangeStreamOptions
impl Clone for ChangeStreamOptions
Source§fn clone(&self) -> ChangeStreamOptions
fn clone(&self) -> ChangeStreamOptions
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 ChangeStreamOptions
impl Debug for ChangeStreamOptions
Source§impl Default for ChangeStreamOptions
impl Default for ChangeStreamOptions
Source§fn default() -> ChangeStreamOptions
fn default() -> ChangeStreamOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeStreamOptions
impl<'de> Deserialize<'de> for ChangeStreamOptions
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 ChangeStreamOptions
impl RefUnwindSafe for ChangeStreamOptions
impl Send for ChangeStreamOptions
impl Sync for ChangeStreamOptions
impl Unpin for ChangeStreamOptions
impl UnwindSafe for ChangeStreamOptions
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