@@ -1135,6 +1135,9 @@ where
1135
1135
1136
1136
/// Inserts the data in `docs` into the collection.
1137
1137
///
1138
+ /// Note that this method accepts both owned and borrowed values, so the input documents
1139
+ /// do not need to be cloned in order to be passed in.
1140
+ ///
1138
1141
/// This operation will retry once upon failure if the connection and encountered error support
1139
1142
/// retryability. See the documentation
1140
1143
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
@@ -1149,6 +1152,9 @@ where
1149
1152
1150
1153
/// Inserts the data in `docs` into the collection using the provided `ClientSession`.
1151
1154
///
1155
+ /// Note that this method accepts both owned and borrowed values, so the input documents
1156
+ /// do not need to be cloned in order to be passed in.
1157
+ ///
1152
1158
/// This operation will retry once upon failure if the connection and encountered error support
1153
1159
/// retryability. See the documentation
1154
1160
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
@@ -1187,6 +1193,9 @@ where
1187
1193
1188
1194
/// Inserts `doc` into the collection.
1189
1195
///
1196
+ /// Note that either an owned or borrowed value can be inserted here, so the input document
1197
+ /// does not need to be cloned to be passed in.
1198
+ ///
1190
1199
/// This operation will retry once upon failure if the connection and encountered error support
1191
1200
/// retryability. See the documentation
1192
1201
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
@@ -1201,6 +1210,9 @@ where
1201
1210
1202
1211
/// Inserts `doc` into the collection using the provided `ClientSession`.
1203
1212
///
1213
+ /// Note that either an owned or borrowed value can be inserted here, so the input document
1214
+ /// does not need to be cloned to be passed in.
1215
+ ///
1204
1216
/// This operation will retry once upon failure if the connection and encountered error support
1205
1217
/// retryability. See the documentation
1206
1218
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
0 commit comments