Skip to main content

SpannerBuilderExt

Trait SpannerBuilderExt 

Source
pub trait SpannerBuilderExt {
    // Required method
    fn with_instance_type(self, instance_type: InstanceType) -> Self;
}
Expand description

Extension trait for ClientBuilder (also exported as SpannerBuilder) to configure Spanner-specific options.

Required Methods§

Source

fn with_instance_type(self, instance_type: InstanceType) -> Self

Sets the target InstanceType (Cloud vs Omni) for the Spanner client.

§Example
let client = Spanner::builder()
    .with_instance_type(InstanceType::Omni)
    .build()
    .await?;

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§