#[non_exhaustive]pub struct ConnectionPoolConfig {
pub connection_pooling_enabled: Option<bool>,
pub flags: Vec<ConnectionPoolFlags>,
pub pooler_count: Option<i32>,
/* private fields */
}Expand description
The managed connection pooling configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection_pooling_enabled: Option<bool>Whether managed connection pooling is enabled.
flags: Vec<ConnectionPoolFlags>Optional. List of connection pool configuration flags.
pooler_count: Option<i32>Output only. Number of connection poolers.
Implementations§
Source§impl ConnectionPoolConfig
impl ConnectionPoolConfig
pub fn new() -> Self
Sourcepub fn set_connection_pooling_enabled<T>(self, v: T) -> Self
pub fn set_connection_pooling_enabled<T>(self, v: T) -> Self
Sets the value of connection_pooling_enabled.
§Example
ⓘ
let x = ConnectionPoolConfig::new().set_connection_pooling_enabled(true);Sourcepub fn set_or_clear_connection_pooling_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_connection_pooling_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of connection_pooling_enabled.
§Example
ⓘ
let x = ConnectionPoolConfig::new().set_or_clear_connection_pooling_enabled(Some(false));
let x = ConnectionPoolConfig::new().set_or_clear_connection_pooling_enabled(None::<bool>);Sourcepub fn set_pooler_count<T>(self, v: T) -> Self
pub fn set_pooler_count<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_pooler_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_pooler_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of pooler_count.
§Example
ⓘ
let x = ConnectionPoolConfig::new().set_or_clear_pooler_count(Some(42));
let x = ConnectionPoolConfig::new().set_or_clear_pooler_count(None::<i32>);Trait Implementations§
Source§impl Clone for ConnectionPoolConfig
impl Clone for ConnectionPoolConfig
Source§fn clone(&self) -> ConnectionPoolConfig
fn clone(&self) -> ConnectionPoolConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionPoolConfig
impl Debug for ConnectionPoolConfig
Source§impl Default for ConnectionPoolConfig
impl Default for ConnectionPoolConfig
Source§fn default() -> ConnectionPoolConfig
fn default() -> ConnectionPoolConfig
Returns the “default value” for a type. Read more
Source§impl Message for ConnectionPoolConfig
impl Message for ConnectionPoolConfig
Source§impl PartialEq for ConnectionPoolConfig
impl PartialEq for ConnectionPoolConfig
impl StructuralPartialEq for ConnectionPoolConfig
Auto Trait Implementations§
impl Freeze for ConnectionPoolConfig
impl RefUnwindSafe for ConnectionPoolConfig
impl Send for ConnectionPoolConfig
impl Sync for ConnectionPoolConfig
impl Unpin for ConnectionPoolConfig
impl UnwindSafe for ConnectionPoolConfig
Blanket Implementations§
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
Mutably borrows from an owned value. Read more