Struct stable_swap_client::instruction::WithdrawData
source · [−]#[repr(C)]pub struct WithdrawData {
pub pool_token_amount: u64,
pub minimum_token_a_amount: u64,
pub minimum_token_b_amount: u64,
}
Expand description
Withdraw instruction data
Fields
pool_token_amount: u64
Amount of pool tokens to burn. User receives an output of token a and b based on the percentage of the pool tokens that are returned.
minimum_token_a_amount: u64
Minimum amount of token A to receive, prevents excessive slippage
minimum_token_b_amount: u64
Minimum amount of token B to receive, prevents excessive slippage
Trait Implementations
sourceimpl Clone for WithdrawData
impl Clone for WithdrawData
sourcefn clone(&self) -> WithdrawData
fn clone(&self) -> WithdrawData
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 WithdrawData
impl Debug for WithdrawData
sourceimpl PartialEq<WithdrawData> for WithdrawData
impl PartialEq<WithdrawData> for WithdrawData
sourcefn eq(&self, other: &WithdrawData) -> bool
fn eq(&self, other: &WithdrawData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WithdrawData) -> bool
fn ne(&self, other: &WithdrawData) -> bool
This method tests for !=
.
impl Copy for WithdrawData
impl StructuralPartialEq for WithdrawData
Auto Trait Implementations
impl RefUnwindSafe for WithdrawData
impl Send for WithdrawData
impl Sync for WithdrawData
impl Unpin for WithdrawData
impl UnwindSafe for WithdrawData
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