pub struct Config { /* private fields */ }Expand description
Client configuration
Implementations§
Source§impl Config
impl Config
Sourcepub fn user_agent(&self) -> &str
pub fn user_agent(&self) -> &str
Get the user agent
Sourcepub fn max_concurrent_requests(&self) -> usize
pub fn max_concurrent_requests(&self) -> usize
Get maximum concurrent requests
Sourcepub fn retry_attempts(&self) -> u32
pub fn retry_attempts(&self) -> u32
Get retry attempts
Sourcepub fn rate_limit(&self) -> Option<&RateLimit>
pub fn rate_limit(&self) -> Option<&RateLimit>
Get rate limit configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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