@@ -97,56 +97,56 @@ Connection Troubleshooting
97
97
.. code-block:: none
98
98
:copyable: false
99
99
100
- Error: Error { kind: Authentication { message: "SCRAM failure: bad auth :
101
- authentication failed" }, labels: {}, wire_version: None, source: Some(Error
102
- { kind: Command(CommandError { code: 8000, code_name: "AtlasError", message:
103
- "bad auth : authentication failed", topology_version: None }),
104
- labels: {}, wire_version: None, source: None }) }
100
+ Error: Error { kind: Authentication { message: "SCRAM failure: bad auth :
101
+ authentication failed" }, labels: {}, wire_version: None, source: Some(Error
102
+ { kind: Command(CommandError { code: 8000, code_name: "AtlasError", message:
103
+ "bad auth : authentication failed", topology_version: None }),
104
+ labels: {}, wire_version: None, source: None }) }
105
105
106
- .. replacement:: check-credentials-formatting-anchor
106
+ .. replacement:: check-credentials-formatting-anchor
107
107
108
- .. _rust-troubleshooting-connection-string-auth:
108
+ .. _rust-troubleshooting-connection-string-auth:
109
109
110
- .. replacement:: learn-more-connection-string-admonition
110
+ .. replacement:: learn-more-connection-string-admonition
111
111
112
- .. tip::
112
+ .. tip::
113
113
114
- For more information about connection strings,
115
- see the :ref:`rust-quick-start-connection-string` guide.
114
+ For more information about connection strings,
115
+ see the :ref:`rust-quick-start-connection-string` guide.
116
116
117
- .. replacement:: verify-authentication-mechanism-anchor
117
+ .. replacement:: verify-authentication-mechanism-anchor
118
118
119
- .. _rust-troubleshooting-connection-auth-mechanism:
119
+ .. _rust-troubleshooting-connection-auth-mechanism:
120
120
121
- .. replacement:: credentials-provider-alternative-method-description
121
+ .. replacement:: credentials-provider-alternative-method-description
122
122
123
- Alternatively, you can specify your authentication credentials in a
124
- ``Credential`` struct.
123
+ Alternatively, you can specify your authentication credentials in a
124
+ ``Credential`` struct.
125
125
126
- .. replacement:: authentication-guide-reference
126
+ .. replacement:: authentication-guide-reference
127
127
128
- To learn more about authentication, see the :ref:`rust-authentication` guide.
128
+ To learn more about authentication, see the :ref:`rust-authentication` guide.
129
129
130
- .. replacement:: verify-authentication-database-anchor
130
+ .. replacement:: verify-authentication-database-anchor
131
131
132
- .. _rust-troubleshooting-connection-admin:
132
+ .. _rust-troubleshooting-connection-admin:
133
133
134
- .. replacement:: authsource-param-code-block
134
+ .. replacement:: authsource-param-code-block
135
135
136
- .. code-block:: rust
137
- :copyable: true
136
+ .. code-block:: rust
137
+ :copyable: true
138
138
139
- let uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users";
140
- let client = Client::with_uri_str(uri).await?;
139
+ let uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users";
140
+ let client = Client::with_uri_str(uri).await?;
141
141
142
- .. replacement:: dns-resolution-anchor
142
+ .. replacement:: dns-resolution-anchor
143
143
144
- .. _rust-troubleshooting-connection-dns-resolution:
144
+ .. _rust-troubleshooting-connection-dns-resolution:
145
145
146
- .. replacement:: dns-error-message
146
+ .. replacement:: dns-error-message
147
147
148
- .. code-block:: none
149
- :copyable: false
148
+ .. code-block:: none
149
+ :copyable: false
150
150
151
- Error: Error { kind: DnsResolve { message: "sample message. type:
152
- SRV class: IN" }, labels: {}, wire_version: None, source: None }
151
+ Error: Error { kind: DnsResolve { message: "sample message. type:
152
+ SRV class: IN" }, labels: {}, wire_version: None, source: None }
0 commit comments