pub struct GetPnlDetails<'a> { /* private fields */ }Expand description
Builder for Client::get_pnl_details
Implementations§
Source§impl<'a> GetPnlDetails<'a>
impl<'a> GetPnlDetails<'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 cursor<V>(self, value: V) -> Self
pub fn direction<V>(self, value: V) -> Selfwhere
V: TryInto<PageDirection>,
pub fn limit<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<PnlDetailsResult>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<PnlDetailsResult>, Error<()>>
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/pnl-details
Trait Implementations§
Source§impl<'a> Clone for GetPnlDetails<'a>
impl<'a> Clone for GetPnlDetails<'a>
Source§fn clone(&self) -> GetPnlDetails<'a>
fn clone(&self) -> GetPnlDetails<'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 GetPnlDetails<'a>
impl<'a> !RefUnwindSafe for GetPnlDetails<'a>
impl<'a> Send for GetPnlDetails<'a>
impl<'a> Sync for GetPnlDetails<'a>
impl<'a> Unpin for GetPnlDetails<'a>
impl<'a> UnsafeUnpin for GetPnlDetails<'a>
impl<'a> !UnwindSafe for GetPnlDetails<'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