#[repr(C)]pub struct TokenParams {
pub decimals: u32,
pub vault_bump: u32,
pub mint_key: Pubkey,
pub vault_key: Pubkey,
}Fields§
§decimals: u32Number of decimals for the token (e.g. 9 for SOL, 6 for USDC).
vault_bump: u32Bump used for generating the PDA for the market’s token vault.
mint_key: PubkeyPubkey of the token mint.
vault_key: PubkeyPubkey of the token vault.
Trait Implementations§
Source§impl BorshDeserialize for TokenParams
impl BorshDeserialize for TokenParams
Source§impl BorshSerialize for TokenParams
impl BorshSerialize for TokenParams
Source§impl Clone for TokenParams
impl Clone for TokenParams
Source§fn clone(&self) -> TokenParams
fn clone(&self) -> TokenParams
Returns a duplicate of the value. Read more
1.0.0 · 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 TokenParams
impl Debug for TokenParams
Source§impl ZeroCopy for TokenParams
impl ZeroCopy for TokenParams
fn load_mut_bytes(data: &mut [u8]) -> Option<&mut Self>
fn load_bytes(data: &[u8]) -> Option<&Self>
impl Copy for TokenParams
impl Pod for TokenParams
Auto Trait Implementations§
impl Freeze for TokenParams
impl RefUnwindSafe for TokenParams
impl Send for TokenParams
impl Sync for TokenParams
impl Unpin for TokenParams
impl UnwindSafe for TokenParams
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.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