You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/concern/mod.rs
+11-18Lines changed: 11 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ use serde_with::skip_serializing_none;
10
10
use typed_builder::TypedBuilder;
11
11
12
12
usecrate::{
13
-
bson::doc,
13
+
bson::{doc, serde_helpers},
14
14
bson_util,
15
15
error::{ErrorKind,Result},
16
16
};
@@ -169,9 +169,11 @@ pub enum Acknowledgment {
169
169
/// the driver will not receive a response indicating whether an operation succeeded or failed.
170
170
/// It also means that the operation cannot be associated with a session. It is reccommended to
171
171
/// avoid using unacknowledged write concerns.
172
-
Nodes(i32),
172
+
Nodes(u32),
173
+
173
174
/// Requires acknowledgement that the write has reached the majority of nodes.
174
175
Majority,
176
+
175
177
/// Requires acknowledgement according to the given custom write concern. See [here](https://docs.mongodb.com/manual/tutorial/configure-replica-set-tag-sets/#tag-sets-and-custom-write-concern-behavior)
176
178
/// for more information.
177
179
Custom(String),
@@ -184,7 +186,7 @@ impl Serialize for Acknowledgment {
0 commit comments