Enum everscale_types::models::account::AccountState
source · pub enum AccountState {
Uninit,
Active(StateInit),
Frozen(HashBytes),
}Expand description
State of an existing account.
Variants§
Uninit
Account exists but has not yet been deployed.
Active(StateInit)
Account exists and has been deployed.
Frozen(HashBytes)
Account exists but has been frozen. Contains a hash of the last known StateInit.
Implementations§
source§impl AccountState
impl AccountState
sourcepub fn status(&self) -> AccountStatus
pub fn status(&self) -> AccountStatus
Returns an account status.
Trait Implementations§
source§impl Clone for AccountState
impl Clone for AccountState
source§fn clone(&self) -> AccountState
fn clone(&self) -> AccountState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AccountState
impl Debug for AccountState
source§impl<'a> Load<'a> for AccountState
impl<'a> Load<'a> for AccountState
source§impl PartialEq<AccountState> for AccountState
impl PartialEq<AccountState> for AccountState
source§fn eq(&self, other: &AccountState) -> bool
fn eq(&self, other: &AccountState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Store for AccountState
impl Store for AccountState
source§fn store_into(
&self,
builder: &mut CellBuilder,
finalizer: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, finalizer: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for AccountState
impl StructuralEq for AccountState
impl StructuralPartialEq for AccountState
Auto Trait Implementations§
impl !RefUnwindSafe for AccountState
impl Send for AccountState
impl Sync for AccountState
impl Unpin for AccountState
impl !UnwindSafe for AccountState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more