Skip to content

Commit f84a439

Browse files
committed
RUST-74 Add cluster_time to ChangeStreamEvent
1 parent 778a840 commit f84a439

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/change_stream/event.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
options::ChangeStreamOptions,
99
};
1010

11-
use bson::{Bson, Document, RawBson, RawDocument, RawDocumentBuf};
11+
use bson::{Bson, Document, RawBson, RawDocument, RawDocumentBuf, Timestamp};
1212
use serde::{Deserialize, Serialize};
1313

1414
/// An opaque token used for resuming an interrupted
@@ -82,6 +82,9 @@ pub struct ChangeStreamEvent<T> {
8282
/// Only specified if `operation_type` is `OperationType::Update`.
8383
pub update_description: Option<UpdateDescription>,
8484

85+
/// The cluster time at which the change occurred.
86+
pub cluster_time: Option<Timestamp>,
87+
8588
/// The `Document` created or modified by the `insert`, `replace`, `delete`, `update`
8689
/// operations (i.e. CRUD operations).
8790
///

0 commit comments

Comments
 (0)