Use TypeSpec body parameter name in Rust (#7713)

* Use TypeSpec body parameter name in Rust

* Resolve PR feedback
This commit is contained in:
Heath Stewart 2024-06-21 15:04:27 -07:00 коммит произвёл GitHub
Родитель 1cb24c9157
Коммит 2992b22966
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -299,7 +299,9 @@ impl SecretClientMethods for SecretClient {
#### Service Methods {#rust-client-methods}
{%include requirement/MUST id="rust-client-methods" %} take a `content: RequestContent<T>` if and only if the service method accepts a request body e.g., `POST` or `PUT`.
{% include requirement/MUST id="rust-client-methods" %} take a `body: RequestContent<T>` if and only if the service method accepts a request body e.g., `POST` or `PUT`.
{% include requirement/MUST id="rust-client-methods-params" %} use the service specified name of all parameters.
{% include requirement/MUST id="rust-client-methods-configuration-name" %} define a client method options struct with the same as the client, client method name, and "Options" e.g., a `set_secret` takes an `Option<SecretClientSetSecretOptions>` as the last parameter.
This is required even if the service method does not currently take any options because - should it ever add options - the client method signature does not have to change and will not break callers.