pub struct GetTickerRequest<'a> { /* private fields */ }Expand description
Request for getting data of single cryptocurrency on coinpaprika.com /ticker/{coin_id}
Implementations§
Source§impl<'a> GetTickerRequest<'a>
impl<'a> GetTickerRequest<'a>
pub fn new(client: &'a Client, coin_id: &str) -> Self
Sourcepub fn quotes(&mut self, quotes: Vec<&str>) -> &'a mut GetTickerRequest<'_>
pub fn quotes(&mut self, quotes: Vec<&str>) -> &'a mut GetTickerRequest<'_>
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<Ticker, Error>
Auto Trait Implementations§
impl<'a> Freeze for GetTickerRequest<'a>
impl<'a> !RefUnwindSafe for GetTickerRequest<'a>
impl<'a> Send for GetTickerRequest<'a>
impl<'a> Sync for GetTickerRequest<'a>
impl<'a> Unpin for GetTickerRequest<'a>
impl<'a> !UnwindSafe for GetTickerRequest<'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