pub struct RecurringService<'a> { /* private fields */ }Implementations§
Source§impl<'a> RecurringService<'a>
impl<'a> RecurringService<'a>
pub fn new(client: &'a JupiterClient) -> Self
pub async fn create_order( &self, req: &CreateRecurringOrderReq, ) -> Result<CreateRecurringOrderRes, JupiterError>
pub async fn execute( &self, req: &TransactionRequest, ) -> Result<ExecuteRes, JupiterError>
pub async fn cancel_order( &self, req: &CancelRecurringOrderReq, ) -> Result<CancelRecurringOrderRes, JupiterError>
pub async fn price_deposit( &self, req: &PriceDepositReq, ) -> Result<PriceDepositRes, JupiterError>
pub async fn price_withdraw( &self, req: &PriceWithdrawReq, ) -> Result<PriceWithdrawRes, JupiterError>
pub async fn get_recurring_orders( &self, req: &GetRecurringOrdersReq, ) -> Result<GetRecurringOrdersRes, JupiterError>
Trait Implementations§
Source§impl<'a> Clone for RecurringService<'a>
impl<'a> Clone for RecurringService<'a>
Source§fn clone(&self) -> RecurringService<'a>
fn clone(&self) -> RecurringService<'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 RecurringService<'a>
impl<'a> !RefUnwindSafe for RecurringService<'a>
impl<'a> Send for RecurringService<'a>
impl<'a> Sync for RecurringService<'a>
impl<'a> Unpin for RecurringService<'a>
impl<'a> UnsafeUnpin for RecurringService<'a>
impl<'a> !UnwindSafe for RecurringService<'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