Client Settings

      +
      The ClusterOptions struct enables you to configure Rust SDK options for bootstrapping, reliability, and performance.

      Almost all configuration for the SDK can be specified through the ClusterOptions which are passed to the Cluster::connect call in the SDK. In addition to this, some of these options can also be specified through the connection string.

      Most of the Cluster Options are grouped into categories. For example, TLS options are configured using an instance of the TlsOptions struct, accessed via the ClusterOptions instance’s tls_options() getter.

      Configuring TLS options
      ClusterOptions::new(Authenticator::PasswordAuthenticator(
          PasswordAuthenticator::new("username".to_string(), "password".to_string()),
      ))
      .tls_options(TlsOptions::new());