pub struct LendService<'a> { /* private fields */ }Implementations§
Source§impl<'a> LendService<'a>
impl<'a> LendService<'a>
pub fn new(client: &'a JupiterClient) -> Self
pub async fn get_positions( &self, req: &GetPositionsReq, ) -> Result<GetPositionsRes, JupiterError>
pub async fn get_earnings( &self, req: &GetEarningsReq, ) -> Result<GetEarningsRes, JupiterError>
Trait Implementations§
Source§impl<'a> Clone for LendService<'a>
impl<'a> Clone for LendService<'a>
Source§fn clone(&self) -> LendService<'a>
fn clone(&self) -> LendService<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LendService<'a>
impl<'a> !RefUnwindSafe for LendService<'a>
impl<'a> Send for LendService<'a>
impl<'a> Sync for LendService<'a>
impl<'a> Unpin for LendService<'a>
impl<'a> UnsafeUnpin for LendService<'a>
impl<'a> !UnwindSafe for LendService<'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