pub struct GetStats<'a> { /* private fields */ }Expand description
Builder for Client::get_stats
Implementations§
Source§impl<'a> GetStats<'a>
impl<'a> GetStats<'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
Sourcepub async fn send(self) -> Result<ResponseValue<TokenStats>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<TokenStats>, Error<()>>
Sends a GET request to /v2/token/{chain}/{tokenAddress}/stats
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetStats<'a>
impl<'a> !RefUnwindSafe for GetStats<'a>
impl<'a> Send for GetStats<'a>
impl<'a> Sync for GetStats<'a>
impl<'a> Unpin for GetStats<'a>
impl<'a> UnsafeUnpin for GetStats<'a>
impl<'a> !UnwindSafe for GetStats<'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