pub struct Mint(/* private fields */);Implementations§
Methods from Deref<Target = SplMint>§
pub const LEN: usize = 82usize
Return the mint authority.
This method should be used when the caller knows that the mint will have a mint
authority set since it skips the Option check.
pub fn supply(&self) -> u64
pub fn decimals(&self) -> u8
pub fn is_initialized(&self) -> bool
Return the freeze authority.
This method should be used when the caller knows that the mint will have a freeze
authority set since it skips the Option check.
Trait Implementations§
Source§impl Discriminator for Mint
impl Discriminator for Mint
const DISCRIMINATOR: &'static [u8]
Auto Trait Implementations§
impl Freeze for Mint
impl RefUnwindSafe for Mint
impl Send for Mint
impl Sync for Mint
impl Unpin for Mint
impl UnwindSafe for Mint
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more