Skip to content

Commit 90c4e24

Browse files
authored
RUST-1252 change docs.mongodb.com links for seo (#360)
1 parent bd21803 commit 90c4e24

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/bson.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ where
364364
}
365365
}
366366

367-
/// This will create the [relaxed Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/) representation of the provided [`Bson`](../enum.Bson.html).
367+
/// This will create the [relaxed Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/) representation of the provided [`Bson`](../enum.Bson.html).
368368
impl From<Bson> for Value {
369369
fn from(bson: Bson) -> Self {
370370
bson.into_relaxed_extjson()
371371
}
372372
}
373373

374374
impl Bson {
375-
/// Converts the Bson value into its [relaxed extended JSON representation](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
375+
/// Converts the Bson value into its [relaxed extended JSON representation](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
376376
///
377377
/// Note: If this method is called on a case which contains a `Decimal128` value, it will panic.
378378
pub fn into_relaxed_extjson(self) -> Value {
@@ -465,7 +465,7 @@ impl Bson {
465465
}
466466
}
467467

468-
/// Converts the Bson value into its [canonical extended JSON representation](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
468+
/// Converts the Bson value into its [canonical extended JSON representation](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
469469
///
470470
/// Note: extended json encoding for `Decimal128` values is not supported. If this method is
471471
/// called on a case which contains a `Decimal128` value, it will panic.
@@ -534,7 +534,7 @@ impl Bson {
534534
}
535535

536536
/// Converts to extended format.
537-
/// This function mainly used for [extended JSON format](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
537+
/// This function mainly used for [extended JSON format](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
538538
// TODO RUST-426: Investigate either removing this from the serde implementation or unifying
539539
// with the extended JSON implementation.
540540
pub(crate) fn into_extended_document(self, rawbson: bool) -> Document {

src/datetime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use serde_with::{DeserializeAs, SerializeAs};
4444
/// This type differs from [`chrono::DateTime`] in that it serializes to and deserializes from a
4545
/// BSON datetime rather than an RFC 3339 formatted string. Additionally, in non-BSON formats, it
4646
/// will serialize to and deserialize from that format's equivalent of the
47-
/// [extended JSON representation](https://docs.mongodb.com/manual/reference/mongodb-extended-json/) of a datetime.
47+
/// [extended JSON representation](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/) of a datetime.
4848
/// To serialize a [`chrono::DateTime`] as a BSON datetime, you can use
4949
/// [`crate::serde_helpers::chrono_datetime_as_bson_datetime`].
5050
///

src/extjson/de.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Deserializing [MongoDB Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/)
1+
//! Deserializing [MongoDB Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/)
22
//!
33
//! ## Usage
44
//!
@@ -29,7 +29,7 @@ use crate::{extjson::models, oid, Bson, Document};
2929

3030
#[derive(Clone, Debug)]
3131
#[non_exhaustive]
32-
/// Error cases that can occur during deserialization from [extended JSON](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
32+
/// Error cases that can occur during deserialization from [extended JSON](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
3333
pub enum Error {
3434
/// Errors that can occur during OID construction and generation from the input data.
3535
InvalidObjectId(oid::Error),
@@ -77,7 +77,7 @@ impl From<oid::Error> for Error {
7777

7878
pub type Result<T> = std::result::Result<T, Error>;
7979

80-
/// This converts from the input JSON object as if it were [MongoDB Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
80+
/// This converts from the input JSON object as if it were [MongoDB Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
8181
impl TryFrom<serde_json::Map<String, serde_json::Value>> for Bson {
8282
type Error = Error;
8383

@@ -172,7 +172,7 @@ impl TryFrom<serde_json::Map<String, serde_json::Value>> for Bson {
172172
}
173173
}
174174

175-
/// This converts from the input JSON as if it were [MongoDB Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
175+
/// This converts from the input JSON as if it were [MongoDB Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
176176
impl TryFrom<serde_json::Value> for Bson {
177177
type Error = Error;
178178

@@ -207,7 +207,7 @@ impl TryFrom<serde_json::Value> for Bson {
207207
}
208208
}
209209

210-
/// This converts from the input JSON as if it were [MongoDB Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
210+
/// This converts from the input JSON as if it were [MongoDB Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
211211
impl TryFrom<serde_json::Map<String, serde_json::Value>> for Document {
212212
type Error = Error;
213213

src/extjson/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Deserialization and serialization of [MongoDB Extended JSON v2](https://docs.mongodb.com/manual/reference/mongodb-extended-json/)
1+
//! Deserialization and serialization of [MongoDB Extended JSON v2](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/)
22
//!
33
//! ## Overview of Extended JSON
44
//!
@@ -15,7 +15,7 @@
1515
//! }
1616
//! }
1717
//! ```
18-
//! For more information on extJSON and the complete list of translations, see the [official MongoDB documentation](https://docs.mongodb.com/manual/reference/mongodb-extended-json/).
18+
//! For more information on extJSON and the complete list of translations, see the [official MongoDB documentation](https://www.mongodb.com/docs/manual/reference/mongodb-extended-json/).
1919
//!
2020
//! All MongoDB drivers and BSON libraries interpret and produce extJSON, so it can serve as a
2121
//! useful tool for communicating between applications where raw BSON bytes cannot be used (e.g. via

src/oid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl From<[u8; 12]> for ObjectId {
100100

101101
impl ObjectId {
102102
/// Generates a new [`ObjectId`], represented in bytes.
103-
/// See the [docs](http://docs.mongodb.org/manual/reference/object-id/)
103+
/// See the [docs](http://www.mongodb.com/docs/manual/reference/object-id/)
104104
/// for more information.
105105
pub fn new() -> ObjectId {
106106
let timestamp = ObjectId::gen_timestamp();

0 commit comments

Comments
 (0)