pub struct TradeArgs {
pub direction: TradeDirection,
pub mode: TradeMode,
pub amount: u64,
pub limit: u64,
}Fields§
§direction: TradeDirection§mode: TradeMode§amount: u64amount_in for ExactIn. amount_out for ExactOut.
limit: u64min_amount_out for ExactIn. max_amount_in for ExactOut.
Trait Implementations§
impl Copy for TradeArgs
impl Eq for TradeArgs
impl StructuralPartialEq for TradeArgs
Auto Trait Implementations§
impl Freeze for TradeArgs
impl RefUnwindSafe for TradeArgs
impl Send for TradeArgs
impl Sync for TradeArgs
impl Unpin for TradeArgs
impl UnsafeUnpin for TradeArgs
impl UnwindSafe for TradeArgs
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