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
sourcepub fn clone(&self) -> WithdrawOneData
pub 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
sourcepub fn eq(&self, other: &WithdrawOneData) -> bool
pub fn eq(&self, other: &WithdrawOneData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &WithdrawOneData) -> bool
pub 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
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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