Struct stable_swap::instruction::WithdrawOneData
source · [−]Expand description
Withdraw instruction data
Fields
pool_token_amount: u64
Amount of pool tokens to burn. User receives an output of token a or b based on the percentage of the pool tokens that are returned.
minimum_token_amount: u64
Minimum amount of token A or B to receive, prevents excessive slippage
Trait Implementations
sourceimpl Clone for WithdrawOneData
impl Clone for WithdrawOneData
sourcefn clone(&self) -> WithdrawOneData
fn clone(&self) -> WithdrawOneData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WithdrawOneData
impl Debug for WithdrawOneData
sourceimpl PartialEq<WithdrawOneData> for WithdrawOneData
impl PartialEq<WithdrawOneData> for WithdrawOneData
sourcefn eq(&self, other: &WithdrawOneData) -> bool
fn eq(&self, other: &WithdrawOneData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WithdrawOneData) -> bool
fn ne(&self, other: &WithdrawOneData) -> bool
This method tests for !=
.
impl Copy for WithdrawOneData
impl StructuralPartialEq for WithdrawOneData
Auto Trait Implementations
impl RefUnwindSafe for WithdrawOneData
impl Send for WithdrawOneData
impl Sync for WithdrawOneData
impl Unpin for WithdrawOneData
impl UnwindSafe for WithdrawOneData
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