pub struct SwapParams {
pub swap_kind: SwapKind,
pub token_in_index: usize,
pub token_out_index: usize,
pub amount_scaled_18: BigInt,
pub balances_live_scaled_18: Vec<BigInt>,
}
Expand description
Swap parameters
Fields§
§swap_kind: SwapKind
Swap kind
token_in_index: usize
Token in index
token_out_index: usize
Token out index
amount_scaled_18: BigInt
Amount (scaled 18)
balances_live_scaled_18: Vec<BigInt>
Balances (scaled 18)
Trait Implementations§
Source§impl Clone for SwapParams
impl Clone for SwapParams
Source§fn clone(&self) -> SwapParams
fn clone(&self) -> SwapParams
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 SwapParams
impl Debug for SwapParams
Source§impl<'de> Deserialize<'de> for SwapParams
impl<'de> Deserialize<'de> for SwapParams
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 SwapParams
impl PartialEq for SwapParams
Source§impl Serialize for SwapParams
impl Serialize for SwapParams
impl StructuralPartialEq for SwapParams
Auto Trait Implementations§
impl Freeze for SwapParams
impl RefUnwindSafe for SwapParams
impl Send for SwapParams
impl Sync for SwapParams
impl Unpin for SwapParams
impl UnwindSafe for SwapParams
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