How to configure a client
The Google Cloud Rust Client Libraries let you configure client behavior using a
ClientBuilder obtained by calling the service client’s
builder() method (for example, SecretManagerService::builder()).
1. Customizing the API endpoint
See Override the default endpoint.
2. Authentication configuration
While the client attempts to find Application Default Credentials (ADC)
automatically, you can explicitly provide credentials using the
with_credentials method on the client builder. See
Override the default authentication method for details and
examples.
3. Logging
See Enable logging.
4. Configuring a proxy
To configure a proxy, you can take advantage of the
standard environment variables supported by reqwest. You don’t need
to configure this in the Rust code itself. Set the following environment
variables in your shell or container:
export http_proxy="http://proxy.example.com:3128"
export https_proxy="http://proxy.example.com:3128"