pub struct AfterSwapParams {
pub kind: SwapKind,
pub token_in: String,
pub token_out: String,
pub amount_in_scaled_18: BigInt,
pub amount_out_scaled_18: BigInt,
pub token_in_balance_scaled_18: BigInt,
pub token_out_balance_scaled_18: BigInt,
pub amount_calculated_scaled_18: BigInt,
pub amount_calculated_raw: BigInt,
}
Expand description
Parameters for after swap hook
Fields§
§kind: SwapKind
§token_in: String
§token_out: String
§amount_in_scaled_18: BigInt
§amount_out_scaled_18: BigInt
§token_in_balance_scaled_18: BigInt
§token_out_balance_scaled_18: BigInt
§amount_calculated_scaled_18: BigInt
§amount_calculated_raw: BigInt
Trait Implementations§
Source§impl Clone for AfterSwapParams
impl Clone for AfterSwapParams
Source§fn clone(&self) -> AfterSwapParams
fn clone(&self) -> AfterSwapParams
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for AfterSwapParams
impl RefUnwindSafe for AfterSwapParams
impl Send for AfterSwapParams
impl Sync for AfterSwapParams
impl Unpin for AfterSwapParams
impl UnwindSafe for AfterSwapParams
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