pub struct ConnectorInitConfig {
pub connection_params: HashMap<String, String>,
pub timeout_seconds: Option<u64>,
pub max_connections: Option<u32>,
}Expand description
Configuration for connector initialization
Fields§
§connection_params: HashMap<String, String>§timeout_seconds: Option<u64>§max_connections: Option<u32>Implementations§
Source§impl ConnectorInitConfig
impl ConnectorInitConfig
Sourcepub fn with_param(self, key: &str, value: &str) -> Self
pub fn with_param(self, key: &str, value: &str) -> Self
Add a connection parameter
Sourcepub fn with_timeout(self, seconds: u64) -> Self
pub fn with_timeout(self, seconds: u64) -> Self
Set timeout in seconds
Sourcepub fn with_max_connections(self, max: u32) -> Self
pub fn with_max_connections(self, max: u32) -> Self
Set maximum connections
Trait Implementations§
Source§impl Clone for ConnectorInitConfig
impl Clone for ConnectorInitConfig
Source§fn clone(&self) -> ConnectorInitConfig
fn clone(&self) -> ConnectorInitConfig
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 ConnectorInitConfig
impl Debug for ConnectorInitConfig
Auto Trait Implementations§
impl Freeze for ConnectorInitConfig
impl RefUnwindSafe for ConnectorInitConfig
impl Send for ConnectorInitConfig
impl Sync for ConnectorInitConfig
impl Unpin for ConnectorInitConfig
impl UnwindSafe for ConnectorInitConfig
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