Struct spl_token::state::Mint[][src]

#[repr(C)]pub struct Mint {
    pub mint_authority: COption<Pubkey>,
    pub supply: u64,
    pub decimals: u8,
    pub is_initialized: bool,
    pub freeze_authority: COption<Pubkey>,
}

Mint data.

Fields

mint_authority: COption<Pubkey>

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.

supply: u64

Total supply of tokens.

decimals: u8

Number of base 10 digits to the right of the decimal place.

is_initialized: bool

Is true if this structure has been initialized

freeze_authority: COption<Pubkey>

Optional authority to freeze token accounts.

Trait Implementations

impl Clone for Mint[src]

impl Copy for Mint[src]

impl Debug for Mint[src]

impl Default for Mint[src]

impl IsInitialized for Mint[src]

impl Pack for Mint[src]

impl PartialEq<Mint> for Mint[src]

impl Sealed for Mint[src]

impl StructuralPartialEq for Mint[src]

Auto Trait Implementations

impl RefUnwindSafe for Mint

impl Send for Mint

impl Sync for Mint

impl Unpin for Mint

impl UnwindSafe for Mint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]