Struct safe_token_swap::instruction::WithdrawAllTokenTypes
source · [−]#[repr(C)]pub struct WithdrawAllTokenTypes {
pub pool_token_amount: u64,
pub minimum_token_a_amount: u64,
pub minimum_token_b_amount: u64,
}Expand description
WithdrawAllTokenTypes instruction data
Fields
pool_token_amount: u64Amount 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: u64Minimum amount of token A to receive, prevents excessive slippage
minimum_token_b_amount: u64Minimum amount of token B to receive, prevents excessive slippage
Trait Implementations
sourceimpl Clone for WithdrawAllTokenTypes
impl Clone for WithdrawAllTokenTypes
sourcefn clone(&self) -> WithdrawAllTokenTypes
fn clone(&self) -> WithdrawAllTokenTypes
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for WithdrawAllTokenTypes
impl Debug for WithdrawAllTokenTypes
sourceimpl PartialEq<WithdrawAllTokenTypes> for WithdrawAllTokenTypes
impl PartialEq<WithdrawAllTokenTypes> for WithdrawAllTokenTypes
sourcefn eq(&self, other: &WithdrawAllTokenTypes) -> bool
fn eq(&self, other: &WithdrawAllTokenTypes) -> bool
impl StructuralPartialEq for WithdrawAllTokenTypes
Auto Trait Implementations
impl RefUnwindSafe for WithdrawAllTokenTypes
impl Send for WithdrawAllTokenTypes
impl Sync for WithdrawAllTokenTypes
impl Unpin for WithdrawAllTokenTypes
impl UnwindSafe for WithdrawAllTokenTypes
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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