[][src]Struct casper_execution_engine::core::engine_state::genesis::GenesisAccount

pub struct GenesisAccount { /* fields omitted */ }

Implementations

impl GenesisAccount[src]

pub fn system(balance: Motes, bonded_amount: Motes) -> Self[src]

pub fn new(
    public_key: PublicKey,
    account_hash: AccountHash,
    balance: Motes,
    bonded_amount: Motes
) -> Self
[src]

pub fn public_key(&self) -> Option<PublicKey>[src]

pub fn account_hash(&self) -> AccountHash[src]

pub fn balance(&self) -> Motes[src]

pub fn bonded_amount(&self) -> Motes[src]

pub fn is_system_account(&self) -> bool[src]

Checks if a given genesis account belongs to a virtual system account,

pub fn is_genesis_validator(&self) -> bool[src]

Checks if a given genesis account is a valid genesis validator.

Genesis validators are the ones with a stake, and are not owned by a virtual system account.

Trait Implementations

impl Clone for GenesisAccount[src]

impl Copy for GenesisAccount[src]

impl DataSize for GenesisAccount[src]

impl Debug for GenesisAccount[src]

impl<'de> Deserialize<'de> for GenesisAccount[src]

impl Distribution<GenesisAccount> for Standard[src]

impl Eq for GenesisAccount[src]

impl FromBytes for GenesisAccount[src]

impl PartialEq<GenesisAccount> for GenesisAccount[src]

impl Serialize for GenesisAccount[src]

impl StructuralEq for GenesisAccount[src]

impl StructuralPartialEq for GenesisAccount[src]

impl ToBytes for GenesisAccount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,