Struct stable_swap::state::SwapTokenInfo
source · [−]#[repr(C)]pub struct SwapTokenInfo {
pub reserves: Pubkey,
pub mint: Pubkey,
pub admin_fees: Pubkey,
pub index: u8,
}
Expand description
Information about one of the tokens.
Fields
reserves: Pubkey
Token account for pool reserves
mint: Pubkey
Mint information for the token
admin_fees: Pubkey
Public key of the admin token account to receive trading and / or withdrawal fees for token
index: u8
The index of the token. Token A = 0, Token B = 1.
Trait Implementations
sourceimpl Clone for SwapTokenInfo
impl Clone for SwapTokenInfo
sourcefn clone(&self) -> SwapTokenInfo
fn clone(&self) -> SwapTokenInfo
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 SwapTokenInfo
impl Debug for SwapTokenInfo
sourceimpl PartialEq<SwapTokenInfo> for SwapTokenInfo
impl PartialEq<SwapTokenInfo> for SwapTokenInfo
sourcefn eq(&self, other: &SwapTokenInfo) -> bool
fn eq(&self, other: &SwapTokenInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwapTokenInfo) -> bool
fn ne(&self, other: &SwapTokenInfo) -> bool
This method tests for !=
.
impl Copy for SwapTokenInfo
impl StructuralPartialEq for SwapTokenInfo
Auto Trait Implementations
impl RefUnwindSafe for SwapTokenInfo
impl Send for SwapTokenInfo
impl Sync for SwapTokenInfo
impl Unpin for SwapTokenInfo
impl UnwindSafe for SwapTokenInfo
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
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