pub struct GetTickersRequest<'a> { /* private fields */ }Expand description
Request for getting data of all active cryptocurrencies on coinpaprika.com /tickers
Implementations§
Source§impl<'a> GetTickersRequest<'a>
impl<'a> GetTickersRequest<'a>
pub fn new(client: &'a Client) -> Self
Sourcepub fn quotes(&mut self, quotes: Vec<&str>) -> &'a mut GetTickersRequest<'_>
pub fn quotes(&mut self, quotes: Vec<&str>) -> &'a mut GetTickersRequest<'_>
List of quotes to return. Up to 3 quotes at once. Currently allowed values: BTC, ETH, USD, EUR, PLN, KRW, GBP, CAD, JPY, RUB, TRY, NZD, AUD, CHF, UAH, HKD, SGD, NGN, PHP, MXN, BRL, THB, CLP, CNY, CZK, DKK, HUF, IDR, ILS, INR, MYR, NOK, PKR, SEK, TWD, ZAR, VND, BOB, COP, PEN, ARS, ISK
pub async fn send(&self) -> Result<Vec<Ticker>, Error>
Auto Trait Implementations§
impl<'a> Freeze for GetTickersRequest<'a>
impl<'a> !RefUnwindSafe for GetTickersRequest<'a>
impl<'a> Send for GetTickersRequest<'a>
impl<'a> Sync for GetTickersRequest<'a>
impl<'a> Unpin for GetTickersRequest<'a>
impl<'a> !UnwindSafe for GetTickersRequest<'a>
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