pub struct CoinGeckoClientBuilder { /* private fields */ }Expand description
Builder for CoinGeckoClient
Implementations§
Source§impl CoinGeckoClientBuilder
impl CoinGeckoClientBuilder
pub fn new() -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
pub fn with_api_key(self, key: impl Into<String>) -> Self
pub fn with_base_url(self, url: impl Into<String>) -> Self
pub fn with_rate_limit(self, requests_per_minute: u32) -> Self
pub fn with_retry(self, config: RetryConfig) -> Self
pub fn build(self) -> Result<CoinGeckoClient>
Trait Implementations§
Source§impl Default for CoinGeckoClientBuilder
impl Default for CoinGeckoClientBuilder
Source§fn default() -> CoinGeckoClientBuilder
fn default() -> CoinGeckoClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoinGeckoClientBuilder
impl RefUnwindSafe for CoinGeckoClientBuilder
impl Send for CoinGeckoClientBuilder
impl Sync for CoinGeckoClientBuilder
impl Unpin for CoinGeckoClientBuilder
impl UnsafeUnpin for CoinGeckoClientBuilder
impl UnwindSafe for CoinGeckoClientBuilder
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