pub struct GetPnl<'a> { /* private fields */ }Expand description
Builder for Client::get_pnl
Implementations§
Source§impl<'a> GetPnl<'a>
impl<'a> GetPnl<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn wallet_address<V>(self, value: V) -> Self
pub fn token_address<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<Vec<WalletPnlDto>>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<Vec<WalletPnlDto>>, Error<()>>
Sends a GET request to /v1/wallet/{chain}/{walletAddress}/pnl
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetPnl<'a>
impl<'a> !RefUnwindSafe for GetPnl<'a>
impl<'a> Send for GetPnl<'a>
impl<'a> Sync for GetPnl<'a>
impl<'a> Unpin for GetPnl<'a>
impl<'a> !UnwindSafe for GetPnl<'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