pub struct SwapService<'a> { /* private fields */ }Implementations§
Source§impl<'a> SwapService<'a>
impl<'a> SwapService<'a>
pub fn new(client: &'a JupiterClient) -> Self
pub async fn quote( &self, req: &SwapQuoteReq, ) -> Result<SwapQuoteRes, JupiterError>
pub async fn swap(&self, req: &SwapReq) -> Result<SwapRes, JupiterError>
pub async fn swap_instructions( &self, req: &SwapReq, ) -> Result<SwapInstructionsRes, JupiterError>
pub async fn program_id_to_label( &self, ) -> Result<HashMap<String, String>, JupiterError>
Trait Implementations§
Source§impl<'a> Clone for SwapService<'a>
impl<'a> Clone for SwapService<'a>
Source§fn clone(&self) -> SwapService<'a>
fn clone(&self) -> SwapService<'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 SwapService<'a>
impl<'a> !RefUnwindSafe for SwapService<'a>
impl<'a> Send for SwapService<'a>
impl<'a> Sync for SwapService<'a>
impl<'a> Unpin for SwapService<'a>
impl<'a> UnsafeUnpin for SwapService<'a>
impl<'a> !UnwindSafe for SwapService<'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