@@ -206,18 +206,8 @@ following parameters:
206206 :language: console
207207 :visible: false
208208
209- {
210- "_id": { ... },
211- "item": "watering can",
212- "category": "garden",
213- "unit_price": 11.99
214- }
215- {
216- "_id": { ... },
217- "item": "candle",
218- "category": "decor",
219- "unit_price": 2.89
220- }
209+ { "_id": { ... }, "item": "watering can", "category": "garden", "unit_price": 11.99 }
210+ { "_id": { ... }, "item": "candle", "category": "decor", "unit_price": 2.89 }
221211
222212.. _rust-find-one-example:
223213
@@ -244,12 +234,22 @@ following parameters:
244234 :language: console
245235 :visible: false
246236
247- {
248- "_id": { ... },
249- "item": "watering can",
250- "category": "garden",
251- "unit_price": 11.99
252- }
237+ Some(
238+ Document({
239+ "_id": ObjectId(
240+ "...",
241+ ),
242+ "item": String(
243+ "watering can",
244+ ),
245+ "category": String(
246+ "garden",
247+ ),
248+ "unit_price": Double(
249+ 11.99,
250+ ),
251+ }),
252+ )
253253
254254.. _rust-retrieve-aggregation:
255255
@@ -356,18 +356,9 @@ pipeline that contains the following stages:
356356 :language: console
357357 :visible: false
358358
359- {
360- "_id": { "category": "garden" },
361- "avg_price": 11.99
362- }
363- {
364- "_id": { "category": "decor" },
365- "avg_price": 2.89
366- }
367- {
368- "_id": { "category": "kitchen" },
369- "avg_price": 20.84
370- }
359+ { "_id": { "category": "garden" }, "avg_price": 11.99 }
360+ { "_id": { "category": "decor" }, "avg_price": 2.89 }
361+ { "_id": { "category": "kitchen" }, "avg_price": 20.84 }
371362
372363.. _rust-crud-retrieve-addtl-info:
373364
@@ -397,7 +388,7 @@ API Documentation
397388~~~~~~~~~~~~~~~~~
398389
399390To learn more about the methods and types discussed in this
400- guide, see the following API Documentation :
391+ guide, see the following API documentation :
401392
402393- `find_one() <{+api+}/struct.Collection.html#method.find_one>`__
403394- `find() <{+api+}/struct.Collection.html#method.find>`__
0 commit comments