pub struct ConfigBuilder { /* private fields */ }Expand description
Configuration builder for fluent configuration setup
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
Sourcepub fn client_timeout(self, timeout: Duration) -> Self
pub fn client_timeout(self, timeout: Duration) -> Self
Set client timeout
Sourcepub fn enable_pooling(self, enabled: bool) -> Self
pub fn enable_pooling(self, enabled: bool) -> Self
Enable or disable connection pooling
Sourcepub fn pool_config(self, pool_config: PoolConfig) -> Self
pub fn pool_config(self, pool_config: PoolConfig) -> Self
Set pool configuration
Sourcepub fn max_retries(self, retries: usize) -> Self
pub fn max_retries(self, retries: usize) -> Self
Set max retries
Sourcepub fn enable_logging(self, level: &str) -> Self
pub fn enable_logging(self, level: &str) -> Self
Enable logging
Sourcepub fn enable_feature(self, feature: &str) -> Self
pub fn enable_feature(self, feature: &str) -> Self
Enable feature
Sourcepub fn build(self) -> Result<GlobalConfig>
pub fn build(self) -> Result<GlobalConfig>
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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