Struct stable_swap_client::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
sourcefn clone(&self) -> DepositData
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
sourcefn eq(&self, other: &DepositData) -> bool
fn eq(&self, other: &DepositData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DepositData) -> bool
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
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