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>, }
Expand description
Mint data.
Fields
Expand description
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
Expand description
Total supply of tokens.
decimals: u8
Expand description
Number of base 10 digits to the right of the decimal place.
is_initialized: bool
Expand description
Is true
if this structure has been initialized
Expand description
Optional authority to freeze token accounts.
Trait Implementations
impl IsInitialized for Mint
[src]
impl IsInitialized for Mint
[src]fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
[src]Is initialized
impl Pack for Mint
[src]
impl Pack for Mint
[src]fn unpack_from_slice(src: &[u8]) -> Result<Self, ProgramError>
[src]
fn pack_into_slice(&self, dst: &mut [u8])
[src]
fn get_packed_len() -> usize
[src]
fn get_packed_len() -> usize
[src]Get the packed length
fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized,
[src]
fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized,
[src]Unpack from slice and check if initialized
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
[src]
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
[src]Unpack from slice without checking if initialized
impl Copy 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> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,