pub struct SwapResult {
pub from_amount: u64,
pub to_amount: u64,
pub trade_fee: u64,
pub protocol_fee: u64,
}Fields§
§from_amount: u64Amount of source token swapped
to_amount: u64Amount of destination token swapped
trade_fee: u64§protocol_fee: u64Auto Trait Implementations§
impl Freeze for SwapResult
impl RefUnwindSafe for SwapResult
impl Send for SwapResult
impl Sync for SwapResult
impl Unpin for SwapResult
impl UnsafeUnpin for SwapResult
impl UnwindSafe for SwapResult
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