pub struct GetPnlStats<'a> { /* private fields */ }Expand description
Builder for Client::get_pnl_stats
Implementations§
Source§impl<'a> GetPnlStats<'a>
impl<'a> GetPnlStats<'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
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}/stats
Trait Implementations§
Source§impl<'a> Clone for GetPnlStats<'a>
impl<'a> Clone for GetPnlStats<'a>
Source§fn clone(&self) -> GetPnlStats<'a>
fn clone(&self) -> GetPnlStats<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GetPnlStats<'a>
impl<'a> !RefUnwindSafe for GetPnlStats<'a>
impl<'a> Send for GetPnlStats<'a>
impl<'a> Sync for GetPnlStats<'a>
impl<'a> Unpin for GetPnlStats<'a>
impl<'a> !UnwindSafe for GetPnlStats<'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