pub struct ConfigBuilder { /* private fields */ }Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new(api_key: String) -> Self
pub fn base_url(self, url: String) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn retries(self, retries: u32) -> Self
pub fn backoff(self, backoff: BackoffConfig) -> Self
pub fn cache_enabled(self, enabled: bool) -> Self
pub fn cache_size(self, size: usize) -> Self
pub fn cache_ttl(self, ttl: Duration) -> Self
pub fn max_connections(self, max_conns: usize) -> Self
pub fn insecure(self, insecure: bool) -> Self
pub fn client_cert(self, cert: PathBuf) -> Self
pub fn client_key(self, key: PathBuf) -> Self
pub fn ca_cert(self, cert: PathBuf) -> Self
pub fn build(self) -> Config
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