#[repr(C)]pub struct DepositAllTokenTypes {
pub pool_token_amount: u64,
pub maximum_token_a_amount: u64,
pub maximum_token_b_amount: u64,
}Expand description
DepositAllTokenTypes instruction data
Fields§
§pool_token_amount: u64Pool token amount to transfer. token_a and token_b amount are set by the current exchange rate and size of the pool
maximum_token_a_amount: u64Maximum token A amount to deposit, prevents excessive slippage
maximum_token_b_amount: u64Maximum token B amount to deposit, prevents excessive slippage
Trait Implementations§
Source§impl Clone for DepositAllTokenTypes
impl Clone for DepositAllTokenTypes
Source§fn clone(&self) -> DepositAllTokenTypes
fn clone(&self) -> DepositAllTokenTypes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DepositAllTokenTypes
impl Debug for DepositAllTokenTypes
Source§impl PartialEq for DepositAllTokenTypes
impl PartialEq for DepositAllTokenTypes
Source§fn eq(&self, other: &DepositAllTokenTypes) -> bool
fn eq(&self, other: &DepositAllTokenTypes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DepositAllTokenTypes
Auto Trait Implementations§
impl Freeze for DepositAllTokenTypes
impl RefUnwindSafe for DepositAllTokenTypes
impl Send for DepositAllTokenTypes
impl Sync for DepositAllTokenTypes
impl Unpin for DepositAllTokenTypes
impl UnsafeUnpin for DepositAllTokenTypes
impl UnwindSafe for DepositAllTokenTypes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more