pub struct Config { /* private fields */ }Expand description
Shared configuration for all API services.
Implementations§
Source§impl Config
impl Config
pub fn new(api_key: impl Into<String>) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_client(self, client: Client) -> Self
Sourcepub fn with_rate_limit(self, per_second: u32) -> Self
pub fn with_rate_limit(self, per_second: u32) -> Self
Set the maximum number of requests per second (default: 9).
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 UnsafeUnpin 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