pub struct BigTableDbSettings {Show 13 fields
pub table_name: String,
pub app_profile_id: String,
pub router_family: String,
pub message_family: String,
pub message_topic_family: String,
pub database_pool_max_size: Option<u32>,
pub database_pool_create_timeout: Option<Duration>,
pub database_pool_wait_timeout: Option<Duration>,
pub database_pool_recycle_timeout: Option<Duration>,
pub database_pool_connection_ttl: Option<Duration>,
pub database_pool_max_idle: Option<Duration>,
pub route_to_leader: bool,
pub retry_count: usize,
}
Expand description
The settings for accessing the BigTable contents.
Fields§
§table_name: String
The Table name matches the GRPC template for table paths.
e.g. projects/{projectid}/instances/{instanceid}/tables/{tablename}
NOTE There is no leading /
By default, this (may?) use the *
variant which translates to
projects/*/instances/*/tables/*
which searches all data stored in
bigtable.
app_profile_id: String
Routing replication profile id.
Should be used everywhere we set table_name
when creating requests
router_family: String
§message_family: String
§message_topic_family: String
§database_pool_max_size: Option<u32>
§database_pool_create_timeout: Option<Duration>
Max time (in seconds) to wait to create a new connection to bigtable
database_pool_wait_timeout: Option<Duration>
Max time (in seconds) to wait for a socket to become available
database_pool_recycle_timeout: Option<Duration>
Max time(in seconds) to recycle a connection
database_pool_connection_ttl: Option<Duration>
Max time (in seconds) a connection should live
database_pool_max_idle: Option<Duration>
Max idle time(in seconds) for a connection
route_to_leader: bool
Include route to leader header in metadata
retry_count: usize
Number of times to retry a GRPC function
Implementations§
source§impl BigTableDbSettings
impl BigTableDbSettings
pub fn metadata(&self) -> Result<Metadata, BigTableError>
pub fn health_metadata(&self) -> Result<Metadata, BigTableError>
pub fn admin_metadata(&self) -> Result<Metadata, BigTableError>
pub fn get_instance_name(&self) -> Result<String, BigTableError>
Trait Implementations§
source§impl Clone for BigTableDbSettings
impl Clone for BigTableDbSettings
source§fn clone(&self) -> BigTableDbSettings
fn clone(&self) -> BigTableDbSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigTableDbSettings
impl Debug for BigTableDbSettings
source§impl<'de> Deserialize<'de> for BigTableDbSettings
impl<'de> Deserialize<'de> for BigTableDbSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for BigTableDbSettings
impl RefUnwindSafe for BigTableDbSettings
impl Send for BigTableDbSettings
impl Sync for BigTableDbSettings
impl Unpin for BigTableDbSettings
impl UnwindSafe for BigTableDbSettings
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)