pub struct ConfigBuilder { /* private fields */ }
Expand description

Builder for Config.

Implementations

Set the URI to use to reach the Spanner API. Leave unspecified to use Cloud Spanner.

Set custom client-side TLS settings.

Specify the GCP project where the Cloud Spanner instance exists.

This may be left unspecified, in which case, the project will be extracted from the credentials. Note that this only works when authenticating using service accounts.

Set the Cloud Spanner instance ID.

Set the Cloud Spanner database name.

Programatically specify the credentials file to use during authentication.

When this is specified, it is used in favor of the GOOGLE_APPLICATION_CREDENTIALS environment variable.

Configuration for the embedded session pool.

Builds a new Config.

Errors

If a required field has not been initialized.

Disable TLS when connecting to Spanner. This usually only makes sense when using the emulator. Note that this also disables authentication to prevent sending secrets in plain text.

Configure the client to connect to a Spanner emulator, e.g.: http://localhost:9092 This disables TLS.

Configure the client to connect to a Spanner emulator running on localhost and using the specified port. This disables TLS.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more