Struct stable_swap::instruction::SwapData
source · [−]Expand description
Swap instruction data
Fields
amount_in: u64
SOURCE amount to transfer, output to DESTINATION is based on the exchange rate
minimum_amount_out: u64
Minimum amount of DESTINATION token to output, prevents excessive slippage
Trait Implementations
impl Copy for SwapData
impl StructuralPartialEq for SwapData
Auto Trait Implementations
impl RefUnwindSafe for SwapData
impl Send for SwapData
impl Sync for SwapData
impl Unpin for SwapData
impl UnwindSafe for SwapData
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more