pub struct SwapResult {
pub amount_in: u64,
pub amount_out: u64,
pub fee: u64,
pub new_balance_in: u64,
pub new_balance_out: u64,
}Expand description
Result of executing a trade (either order-book or AMM).
Fields§
§amount_in: u64§amount_out: u64§fee: u64§new_balance_in: u64§new_balance_out: u64Trait Implementations§
Source§impl Clone for SwapResult
impl Clone for SwapResult
Source§fn clone(&self) -> SwapResult
fn clone(&self) -> SwapResult
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 moreSource§impl Debug for SwapResult
impl Debug for SwapResult
Source§impl<'de> Deserialize<'de> for SwapResult
impl<'de> Deserialize<'de> for SwapResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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