pub struct PlanApi { /* private fields */ }Implementations§
Source§impl PlanApi
impl PlanApi
pub async fn earn(&self, account_id: &str, params: &EarnParams) -> Result<Plan>
pub async fn withdraw( &self, account_id: &str, params: &WithdrawParams, ) -> Result<Plan>
pub async fn transfer( &self, account_id: &str, params: &TransferParams, ) -> Result<Plan>
pub async fn claim_rewards( &self, account_id: &str, params: &ClaimRewardsParams, ) -> Result<Plan>
pub async fn borrow( &self, account_id: &str, params: &BorrowParams, ) -> Result<Plan>
pub async fn repay( &self, account_id: &str, params: &RepayParams, ) -> Result<Plan>
pub async fn swap(&self, account_id: &str, params: &SwapParams) -> Result<Plan>
pub async fn loop_long( &self, account_id: &str, params: &LoopLongParams, ) -> Result<Plan>
pub async fn unloop_long( &self, account_id: &str, params: &UnloopLongParams, ) -> Result<Plan>
pub async fn add_backing( &self, account_id: &str, params: &AddBackingParams, ) -> Result<Plan>
pub async fn withdraw_backing( &self, account_id: &str, params: &WithdrawBackingParams, ) -> Result<Plan>
pub async fn migrate( &self, account_id: &str, params: &MigrateParams, ) -> Result<Plan>
pub async fn swap_and_supply( &self, account_id: &str, params: &SwapAndSupplyParams, ) -> Result<Plan>
pub async fn reinvest_rewards( &self, account_id: &str, params: &ReinvestRewardsParams, ) -> Result<Plan>
pub async fn execute( &self, account_id: &str, params: &ExecuteParams, ) -> Result<ExecuteResult>
Auto Trait Implementations§
impl Freeze for PlanApi
impl !RefUnwindSafe for PlanApi
impl Send for PlanApi
impl Sync for PlanApi
impl Unpin for PlanApi
impl UnsafeUnpin for PlanApi
impl !UnwindSafe for PlanApi
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