spl_token_2022::extension

Trait BaseState

Source
pub trait BaseState: PackedSizeOf + IsInitialized {
    const ACCOUNT_TYPE: AccountType;
}
Expand description

Trait for base states, specifying the associated enum

Required Associated Constants§

Source

const ACCOUNT_TYPE: AccountType

Associated extension type enum, checked at the start of TLV entries

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl BaseState for PodAccount

Source§

const ACCOUNT_TYPE: AccountType = AccountType::Account

Source§

impl BaseState for PodMint

Source§

const ACCOUNT_TYPE: AccountType = AccountType::Mint

Source§

impl BaseState for Account

Source§

const ACCOUNT_TYPE: AccountType = AccountType::Account

Source§

impl BaseState for Mint

Source§

const ACCOUNT_TYPE: AccountType = AccountType::Mint