@@ -10,6 +10,7 @@ use serde::Serialize;
10
10
/// operation.
11
11
#[ derive( Debug , Serialize ) ]
12
12
#[ serde( rename_all = "camelCase" ) ]
13
+ #[ non_exhaustive]
13
14
pub struct InsertOneResult {
14
15
/// The `_id` field of the document inserted.
15
16
pub inserted_id : Bson ,
@@ -31,6 +32,7 @@ impl InsertOneResult {
31
32
/// operation.
32
33
#[ derive( Debug , Serialize ) ]
33
34
#[ serde( rename_all = "camelCase" ) ]
35
+ #[ non_exhaustive]
34
36
pub struct InsertManyResult {
35
37
/// The `_id` field of the documents inserted.
36
38
pub inserted_ids : HashMap < usize , Bson > ,
@@ -48,6 +50,7 @@ impl InsertManyResult {
48
50
/// [`Collection::update_many`](../struct.Collection.html#method.update_many) operation.
49
51
#[ derive( Debug , Serialize ) ]
50
52
#[ serde( rename_all = "camelCase" ) ]
53
+ #[ non_exhaustive]
51
54
pub struct UpdateResult {
52
55
/// The number of documents that matched the filter.
53
56
pub matched_count : i64 ,
@@ -61,6 +64,7 @@ pub struct UpdateResult {
61
64
/// [`Collection::delete_many`](../struct.Collection.html#method.delete_many) operation.
62
65
#[ derive( Debug , Serialize ) ]
63
66
#[ serde( rename_all = "camelCase" ) ]
67
+ #[ non_exhaustive]
64
68
pub struct DeleteResult {
65
69
/// The number of documents deleted by the operation.
66
70
pub deleted_count : i64 ,
0 commit comments