pub struct ProductionClientBuilder { /* private fields */ }Expand description
Builder for production client
Implementations§
Source§impl ProductionClientBuilder
impl ProductionClientBuilder
pub fn new() -> Self
pub fn api_key(self, api_key: impl Into<String>) -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn rate_limit(self, rate_limit: RateLimitConfig) -> Self
pub fn pool_config(self, pool: PoolConfig) -> Self
pub fn retry_config(self, retry: RetryConfig) -> Self
pub fn cache_config(self, cache: CacheConfig) -> Self
pub fn enable_caching(self, enable: bool) -> Self
pub fn enable_metrics(self, enable: bool) -> Self
pub fn enable_tracing(self, enable: bool) -> Self
pub async fn build(self) -> Result<ProductionFmpClient>
Auto Trait Implementations§
impl Freeze for ProductionClientBuilder
impl RefUnwindSafe for ProductionClientBuilder
impl Send for ProductionClientBuilder
impl Sync for ProductionClientBuilder
impl Unpin for ProductionClientBuilder
impl UnwindSafe for ProductionClientBuilder
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