File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ pub struct IndexModel {
16
16
/// Specifies the index’s fields. For each field, specify a key-value pair in which the key is
17
17
/// the name of the field to index and the value is index type.
18
18
#[ serde( rename = "key" ) ]
19
- keys : Document ,
19
+ pub keys : Document ,
20
20
21
21
/// The options for the index.
22
22
#[ serde( flatten) ]
23
- options : Option < IndexOptions > ,
23
+ pub options : Option < IndexOptions > ,
24
24
}
25
25
26
26
impl IndexModel {
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ pub struct DeleteResult {
80
80
/// Information about the index created as a result of a
81
81
/// [`Collection::create_index`](../struct.Collection.html#method.create_index).
82
82
#[ derive( Debug , Clone , PartialEq ) ]
83
+ #[ non_exhaustive]
83
84
pub struct CreateIndexResult {
84
85
/// The name of the index created in the `createIndex` command.
85
86
pub index_name : String ,
@@ -117,6 +118,7 @@ impl From<CreateIndexesResult> for CreateIndexResult {
117
118
/// Information about the indexes created as a result of a
118
119
/// [`Collection::create_indexes`](../struct.Collection.html#method.create_indexes).
119
120
#[ derive( Debug , Clone , PartialEq ) ]
121
+ #[ non_exhaustive]
120
122
pub struct CreateIndexesResult {
121
123
/// The list containing the names of all indexes created in the `createIndexes` command.
122
124
pub index_names : Vec < String > ,
You can’t perform that action at this time.
0 commit comments