pub struct SwapResult {
pub amount_out_raw: BigInt,
pub fee_amount_raw: BigInt,
}
Expand description
Result of a swap operation
Fields§
§amount_out_raw: BigInt
Amount out (raw, not scaled)
fee_amount_raw: BigInt
Fee amount (raw, not scaled)
Trait 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 · 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
Source§impl PartialEq for SwapResult
impl PartialEq for SwapResult
Source§impl Serialize for SwapResult
impl Serialize for SwapResult
impl StructuralPartialEq for SwapResult
Auto Trait Implementations§
impl Freeze for SwapResult
impl RefUnwindSafe for SwapResult
impl Send for SwapResult
impl Sync for SwapResult
impl Unpin 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