File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -693,6 +693,7 @@ impl From<FindOneOptions> for FindOptions {
693
693
fn from ( options : FindOneOptions ) -> Self {
694
694
FindOptions {
695
695
allow_partial_results : options. allow_partial_results ,
696
+ collation : options. collation ,
696
697
comment : options. comment ,
697
698
hint : options. hint ,
698
699
max : options. max ,
@@ -705,7 +706,12 @@ impl From<FindOneOptions> for FindOptions {
705
706
selection_criteria : options. selection_criteria ,
706
707
show_record_id : options. show_record_id ,
707
708
skip : options. skip ,
708
- ..Default :: default ( )
709
+ batch_size : None ,
710
+ cursor_type : None ,
711
+ limit : None ,
712
+ max_await_time : None ,
713
+ no_cursor_timeout : None ,
714
+ sort : None ,
709
715
}
710
716
}
711
717
}
@@ -733,6 +739,13 @@ pub struct FindOneOptions {
733
739
#[ builder( default ) ]
734
740
pub allow_partial_results : Option < bool > ,
735
741
742
+ /// The collation to use for the operation.
743
+ ///
744
+ /// See the [documentation](https://docs.mongodb.com/manual/reference/collation/) for more
745
+ /// information on how to use this option.
746
+ #[ builder( default ) ]
747
+ pub collation : Option < Collation > ,
748
+
736
749
/// Tags the query with an arbitrary string to help trace the operation through the database
737
750
/// profiler, currentOp and logs.
738
751
#[ builder( default ) ]
You can’t perform that action at this time.
0 commit comments