Skip to content

Commit 4a07d9e

Browse files
authored
(DOCSP-33497) Adds Rust to the Connection Strings page dropdown (#4942) (#5049)
* (DOCSP-33497) Adds Rust to the Connection Strings page dropdown * Includes changes from tech review
1 parent 636c5b8 commit 4a07d9e

19 files changed

+148
-15
lines changed

source/includes/connection-examples-by-language-admin-local.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
.. tab::
8787
:tabid: motor
8888

89+
.. code-block:: bash
90+
91+
mongodb://myDatabaseUser:D1fficultP%40ssw0rd@localhost
92+
93+
.. tab::
94+
:tabid: rust
95+
8996
.. code-block:: bash
9097
9198
mongodb://myDatabaseUser:D1fficultP%40ssw0rd@localhost

source/includes/connection-examples-by-language-atlas-aws-env-variable.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,10 @@
111111
112112
mongodb+srv://cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS
113113
114+
.. tab::
115+
:tabid: rust
116+
117+
.. code-block:: bash
118+
119+
mongodb+srv://cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS
120+

source/includes/connection-examples-by-language-atlas-aws-iam.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
.. tab::
8888
:tabid: motor
8989

90+
.. code-block:: bash
91+
92+
mongodb+srv://<aws access key id>:<aws secret access key>@cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS
93+
94+
.. tab::
95+
:tabid: rust
96+
9097
.. code-block:: bash
9198
9299
mongodb+srv://<aws access key id>:<aws secret access key>@cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS

source/includes/connection-examples-by-language-atlas-aws-session-token.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
.. tab::
8888
:tabid: motor
8989

90+
.. code-block:: bash
91+
92+
mongodb+srv://<aws access key id>:<aws secret access key>@cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:<aws session token>
93+
94+
.. tab::
95+
:tabid: rust
96+
9097
.. code-block:: bash
9198
9299
mongodb+srv://<aws access key id>:<aws secret access key>@cluster0.example.com/testdb?authSource=$external&authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:<aws session token>

source/includes/connection-examples-by-language-atlas.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
.. tab::
8888
:tabid: motor
8989

90+
.. code-block:: bash
91+
92+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]/
93+
94+
.. tab::
95+
:tabid: rust
96+
9097
.. code-block:: bash
9198
9299
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]/

source/includes/connection-examples-by-language-local.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
.. tab::
8787
:tabid: motor
8888

89+
.. code-block:: bash
90+
91+
mongodb://localhost
92+
93+
.. tab::
94+
:tabid: rust
95+
8996
.. code-block:: bash
9097
9198
mongodb://localhost

source/includes/connection-examples-by-language-onprem-srv-rs.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,11 @@
8888

8989
.. code-block:: bash
9090
91-
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl
91+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl
92+
93+
.. tab::
94+
:tabid: rust
95+
96+
.. code-block:: bash
97+
98+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]/?authSource=admin&replicaSet=myRepl

source/includes/connection-examples-by-language-onprem-srv-sharded.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,11 @@
8888

8989
.. code-block:: bash
9090
91-
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017,mongos1.example.com:27017,mongos2.example.com:27017/?authSource=admin
91+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017,mongos1.example.com:27017,mongos2.example.com:27017/?authSource=admin
92+
93+
.. tab::
94+
:tabid: rust
95+
96+
.. code-block:: bash
97+
98+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]/?authSource=admin

source/includes/connection-examples-by-language-onprem-srv-standalone.rst

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,82 +10,89 @@
1010
.. tab::
1111
:tabid: python
1212

13-
.. code-block:: none
13+
.. code-block:: bash
1414
1515
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
1616
1717
.. tab::
1818
:tabid: java-sync
1919

20-
.. code-block:: none
20+
.. code-block:: bash
2121
2222
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
2323
2424
.. tab::
2525
:tabid: java-async
2626

27-
.. code-block:: none
27+
.. code-block:: bash
2828
2929
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
3030
3131
.. tab::
3232
:tabid: nodejs
3333

34-
.. code-block:: none
34+
.. code-block:: bash
3535
3636
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
3737
3838
.. tab::
3939
:tabid: php
4040

41-
.. code-block:: none
41+
.. code-block:: bash
4242
4343
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
4444
4545
.. tab::
4646
:tabid: perl
4747

48-
.. code-block:: none
48+
.. code-block:: bash
4949
5050
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
5151
.. tab::
5252
:tabid: ruby
5353

54-
.. code-block:: none
54+
.. code-block:: bash
5555
5656
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
5757
5858
.. tab::
5959
:tabid: scala
6060

61-
.. code-block:: none
61+
.. code-block:: bash
6262
6363
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
6464
6565
.. tab::
6666
:tabid: compass
6767

68-
.. code-block:: none
68+
.. code-block:: bash
6969
7070
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
7171
7272
.. tab::
7373
:tabid: csharp
7474

75-
.. code-block:: none
75+
.. code-block:: bash
7676
7777
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
7878
7979
.. tab::
8080
:tabid: go
8181

82-
.. code-block:: none
82+
.. code-block:: bash
8383
8484
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
8585
8686
.. tab::
8787
:tabid: motor
8888

89-
.. code-block:: none
89+
.. code-block:: bash
90+
91+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
92+
93+
.. tab::
94+
:tabid: rust
95+
96+
.. code-block:: bash
9097
91-
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]:27017/?authSource=admin
98+
mongodb+srv://myDatabaseUser:D1fficultP%[email protected]/?authSource=admin

source/includes/connection-examples-by-language-onprem-standard-rs.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
.. tab::
8787
:tabid: motor
8888

89+
.. code-block:: bash
90+
91+
mongodb://myDatabaseUser:D1fficultP%[email protected]:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl
92+
93+
.. tab::
94+
:tabid: rust
95+
8996
.. code-block:: bash
9097
9198
mongodb://myDatabaseUser:D1fficultP%[email protected]:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource=admin&replicaSet=myRepl

0 commit comments

Comments
 (0)