pub struct GetPrices<'a> { /* private fields */ }Expand description
Builder for [Client::get_prices]
[`Client::get_prices`]: super::Client::get_pricesImplementations§
Source§impl<'a> GetPrices<'a>
impl<'a> GetPrices<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn token_address<V>(self, value: V) -> Self
pub fn cursor<V>(self, value: V) -> Self
pub fn direction<V>(self, value: V) -> Selfwhere
V: TryInto<GetPricesDirection>,
pub fn limit<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<TokenPricePage>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<TokenPricePage>, Error<()>>
Sends a GET request to /v1/token/{chain}/{tokenAddress}/prices
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetPrices<'a>
impl<'a> !RefUnwindSafe for GetPrices<'a>
impl<'a> Send for GetPrices<'a>
impl<'a> Sync for GetPrices<'a>
impl<'a> Unpin for GetPrices<'a>
impl<'a> !UnwindSafe for GetPrices<'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