@@ -39,12 +39,14 @@ To learn more about the commands that the server covers, see
39
39
Specify an API Version
40
40
----------------------
41
41
42
- To specify an API version, define a ``ServerApi`` struct and set the ``server_api`` field
43
- of your ``ClientOptions`` instance to this struct.
44
- The ``ServerApi`` struct contains your server API version and options.
45
- To learn more about the options, see the :ref:`Modify Behavior <rust-stable-api-options>` section of this guide.
42
+ To specify an API version, define a ``ServerApi`` struct and set the
43
+ ``server_api`` field of your ``ClientOptions`` instance to this struct.
44
+ The ``ServerApi`` struct contains the API version and options.
45
+ To learn more about setting options, see the :ref:`Modify Behavior
46
+ <rust-stable-api-options>` section of this guide.
46
47
47
- After you specify an API version, the client runs operations that are compatible with the API version.
48
+ After you specify an API version, the client runs only operations that
49
+ are compatible with that version.
48
50
49
51
.. note::
50
52
@@ -81,10 +83,10 @@ While you can set the fields in a ``ServerApi`` struct manually, you can use the
81
83
82
84
* - ``version``
83
85
- | The {+stable-api+} version to use.
84
- | Specified with the ``ServerAPIVersion`` enum.
86
+ | Specified with the ``ServerApiVersion`` enum. The only
87
+ accepted value is ``V1``.
85
88
86
- | Type: ``ServerAPIVersion``
87
- | Default: ``ServerAPIVersion1``
89
+ | Type: ``ServerApiVersion``
88
90
89
91
* - ``strict``
90
92
- | Indicates whether the server should return errors for features that aren't part of the API version.
@@ -129,7 +131,6 @@ guide, see the following API Documentation:
129
131
130
132
- `Client <{+api+}/struct.Client.html>`__
131
133
- `ClientOptions <{+api+}/options/struct.ClientOptions.html>`__
132
- - `ServerAPI <{+api+}/options/struct.ServerApi.html>`__
134
+ - `ServerApi <{+api+}/options/struct.ServerApi.html>`__
133
135
- `ServerApiVersion <{+api+}/options/enum.ServerApiVersion.html>`__
134
- - `with_options() <{+api+}/options/struct.Client.html#method.with_options>`__
135
-
136
+ - `with_options() <{+api+}/options/struct.Client.html#method.with_options>`__
0 commit comments