pub async fn adjust_api_version(&mut self) -> Result<()> {
        let server_version: Option<ApiVersion> = self
            .version()
            .await
            .map(|v| v.api_version.and_then(|v| v.parse().ok()))?;

        if let Some(version) = server_version {
            if version <= self.version {
                self.version = version;
            }
        }

        Ok(())
    }
/// Verifies the API version returned by the server and adjusts the version used by this client
/// in future requests.
Verifies the API version returned by the server and adjusts the version used by this client
in future requests.
Verifies the API version returned by the server and adjusts the version used by this client in future requests .
pub async fn adjust_api_version(&mut self) -> Result<()> {
        let server_version: Option<ApiVersion> = self
            .version()
            .await
            .map(|v| v.api_version.and_then(|v| v.parse().ok()))?;
        if let Some(version) = server_version {
            if version <= self.version {
                self.version = version;
            }
        }
        Ok(())
    }
pub async fn adjust_api_version ( & mut self ) -> Result < ( ) > { let server_version : Option < ApiVersion > = self . version ( ) . await . map ( | v | v . api_version . and_then ( | v | v . parse ( ) . ok ( ) ) ) ? ; if let Some ( version ) = server_version { if version <= self . version { self . version = version ; } } Ok ( ( ) ) }
Verifies the API version returned by the server and adjusts the version used by this client
in future requests.
Verifies the API version returned by the server and adjusts the version used by this client in future requests .
&mut self
&mut self