Struct spl_token::state::Mint [−][src]
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.
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
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]
fn is_initialized(&self) -> bool
[src]
impl Pack for Mint
[src]
const LEN: usize
[src]
fn unpack_from_slice(src: &[u8]) -> Result<Self, ProgramError>
[src]
fn pack_into_slice(&self, dst: &mut [u8])
[src]
pub fn get_packed_len() -> usize
[src]
pub fn unpack(input: &[u8]) -> Result<Self, ProgramError> where
Self: IsInitialized,
[src]
Self: IsInitialized,
pub fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
[src]
pub fn pack(src: Self, dst: &mut [u8]) -> Result<(), ProgramError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,