Bad code snippet:
pub async fn restore_secret(&self, parameters: RequestContent<RestoreSecretParameters>, options: Option<SecretClientRestoreSecretOptions>) -> Result<Response<Secret>> {}
What it should do:
The APIView guidelines are outdated here. RequestContent<T> parameters should not be enforced to use the name content going forward, so parameters should be accepted as valid.
Good code snippet:
pub async fn restore_secret(&self, parameters: RequestContent<RestoreSecretParameters>, options: Option<SecretClientRestoreSecretOptions>) -> Result<Response<Secret>> {}
Bad code snippet:
What it should do:
The APIView guidelines are outdated here.
RequestContent<T>parameters should not be enforced to use the namecontentgoing forward, soparametersshould be accepted as valid.Good code snippet: