pub struct CoinGeckoClient { /* private fields */ }Expand description
HTTP client for CoinGecko API
Implementations§
Source§impl CoinGeckoClient
impl CoinGeckoClient
pub fn builder() -> CoinGeckoClientBuilder
Sourcepub async fn get(&self, endpoint: &str) -> Result<String>
pub async fn get(&self, endpoint: &str) -> Result<String>
Make a GET request to the CoinGecko API
Sourcepub async fn get_url(&self, url: &str) -> Result<String>
pub async fn get_url(&self, url: &str) -> Result<String>
Make a GET request to a full URL with automatic retry on rate limits
pub fn inner(&self) -> &Client
pub fn retry_config(&self) -> &RetryConfig
pub fn base_url(&self) -> &str
Auto Trait Implementations§
impl Freeze for CoinGeckoClient
impl !RefUnwindSafe for CoinGeckoClient
impl Send for CoinGeckoClient
impl Sync for CoinGeckoClient
impl Unpin for CoinGeckoClient
impl UnsafeUnpin for CoinGeckoClient
impl !UnwindSafe for CoinGeckoClient
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