pub struct KnownToken {
pub symbol: &'static str,
pub mint: &'static str,
pub decimals: u8,
}Expand description
A known SPL token with its mint address and metadata.
Fields§
§symbol: &'static strHuman-readable symbol (e.g. “USDC”).
mint: &'static strMint address (base-58).
decimals: u8Number of decimal places.
Trait Implementations§
Source§impl Clone for KnownToken
impl Clone for KnownToken
Source§fn clone(&self) -> KnownToken
fn clone(&self) -> KnownToken
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 moreAuto Trait Implementations§
impl Freeze for KnownToken
impl RefUnwindSafe for KnownToken
impl Send for KnownToken
impl Sync for KnownToken
impl Unpin for KnownToken
impl UnsafeUnpin for KnownToken
impl UnwindSafe for KnownToken
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