Struct spanner_rs::ConfigBuilder [−][src]
pub struct ConfigBuilder { /* fields omitted */ }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.
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
Auto Trait Implementations
impl !RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
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