@@ -10,6 +10,7 @@ use serde::Serialize;
1010/// operation.
1111#[ derive( Debug , Serialize ) ]
1212#[ serde( rename_all = "camelCase" ) ]
13+ #[ non_exhaustive]
1314pub struct InsertOneResult {
1415 /// The `_id` field of the document inserted.
1516 pub inserted_id : Bson ,
@@ -31,6 +32,7 @@ impl InsertOneResult {
3132/// operation.
3233#[ derive( Debug , Serialize ) ]
3334#[ serde( rename_all = "camelCase" ) ]
35+ #[ non_exhaustive]
3436pub struct InsertManyResult {
3537 /// The `_id` field of the documents inserted.
3638 pub inserted_ids : HashMap < usize , Bson > ,
@@ -48,6 +50,7 @@ impl InsertManyResult {
4850/// [`Collection::update_many`](../struct.Collection.html#method.update_many) operation.
4951#[ derive( Debug , Serialize ) ]
5052#[ serde( rename_all = "camelCase" ) ]
53+ #[ non_exhaustive]
5154pub struct UpdateResult {
5255 /// The number of documents that matched the filter.
5356 pub matched_count : i64 ,
@@ -61,6 +64,7 @@ pub struct UpdateResult {
6164/// [`Collection::delete_many`](../struct.Collection.html#method.delete_many) operation.
6265#[ derive( Debug , Serialize ) ]
6366#[ serde( rename_all = "camelCase" ) ]
67+ #[ non_exhaustive]
6468pub struct DeleteResult {
6569 /// The number of documents deleted by the operation.
6670 pub deleted_count : i64 ,
0 commit comments