Trait spl_token_2022::extension::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

Object Safety§

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