#[repr(C)]pub struct Mint {
pub mint_authority: COption<Pubkey>,
pub decimals: u8,
pub freeze_authority: COption<Pubkey>,
/* private fields */
}
Expand description
Internal representation of a mint data.
Fields§
Optional authority used to mint new tokens. The mint authority may only be provided during mint creation. If no mint authority is present then the mint has a fixed supply and no further tokens may be minted.
decimals: u8
Number of base 10 digits to the right of the decimal place.
Optional authority to freeze token accounts.
Implementations§
Trait Implementations§
Source§impl Initializable for Mint
impl Initializable for Mint
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Return
true
if the object is initialized.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§
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