Struct stable_swap::instruction::DepositData
source · [−]#[repr(C)]pub struct DepositData {
pub token_a_amount: u64,
pub token_b_amount: u64,
pub min_mint_amount: u64,
}
Expand description
Deposit instruction data
Fields
token_a_amount: u64
Token A amount to deposit
token_b_amount: u64
Token B amount to deposit
min_mint_amount: u64
Minimum LP tokens to mint, prevents excessive slippage
Trait Implementations
sourceimpl Clone for DepositData
impl Clone for DepositData
sourcepub fn clone(&self) -> DepositData
pub fn clone(&self) -> DepositData
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 DepositData
impl Debug for DepositData
sourceimpl PartialEq<DepositData> for DepositData
impl PartialEq<DepositData> for DepositData
sourcepub fn eq(&self, other: &DepositData) -> bool
pub fn eq(&self, other: &DepositData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &DepositData) -> bool
pub fn ne(&self, other: &DepositData) -> bool
This method tests for !=
.
impl Copy for DepositData
impl StructuralPartialEq for DepositData
Auto Trait Implementations
impl RefUnwindSafe for DepositData
impl Send for DepositData
impl Sync for DepositData
impl Unpin for DepositData
impl UnwindSafe for DepositData
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