pub struct BigTableDbSettings {Show 14 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,
pub max_router_ttl: Option<Duration>,
}Expand description
The settings for accessing the BigTable contents.
Fields§
§table_name: StringThe 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: StringRouting 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: boolInclude route to leader header in metadata
retry_count: usizeNumber of times to retry a GRPC function
max_router_ttl: Option<Duration>Max lifetime (in seconds) for a router entry
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 UnsafeUnpin 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more