pub fn status(&self) -> AccountStatus {
        if let Some(stuff) = self.stuff() {
            match stuff.storage.state() {
                AccountState::AccountUninit => AccountStatus::AccStateUninit,
                AccountState::AccountFrozen { init_code_hash: _, state_init_hash: _ } => AccountStatus::AccStateFrozen,
                AccountState::AccountActive { init_code_hash: _, state_init: _ } => AccountStatus::AccStateActive,
            }
        } else {
            AccountStatus::AccStateNonexist
        }
    }
/// Get enum variant indicating current state of account
Get enum variant indicating current state of account
Get enum variant indicating current state of account
pub fn status(&self) -> AccountStatus {
        if let Some(stuff) = self.stuff() {
            match stuff.storage.state() {
                AccountState::AccountUninit => AccountStatus::AccStateUninit,
                AccountState::AccountFrozen { init_code_hash: _, state_init_hash: _ } => AccountStatus::AccStateFrozen,
                AccountState::AccountActive { init_code_hash: _, state_init: _ } => AccountStatus::AccStateActive,
            }
        } else {
            AccountStatus::AccStateNonexist
        }
    }
pub fn status ( & self ) -> AccountStatus { if let Some ( stuff ) = self . stuff ( ) { match stuff . storage . state ( ) { AccountState :: AccountUninit => AccountStatus :: AccStateUninit , AccountState :: AccountFrozen { init_code_hash : _ , state_init_hash : _ } => AccountStatus :: AccStateFrozen , AccountState :: AccountActive { init_code_hash : _ , state_init : _ } => AccountStatus :: AccStateActive , } } else { AccountStatus :: AccStateNonexist } }
Get enum variant indicating current state of account
Get enum variant indicating current state of account
&self
&self