pub trait BaseState: Pack + 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 Account

source§

const ACCOUNT_TYPE: AccountType = AccountType::Account

source§

impl BaseState for Mint

source§

const ACCOUNT_TYPE: AccountType = AccountType::Mint