Struct vapcore_pod::account::PodAccount[][src]

pub struct PodAccount {
    pub balance: U256,
    pub nonce: U256,
    pub code: Option<Bytes>,
    pub storage: BTreeMap<H256, H256>,
    pub version: U256,
}

An account, expressed as Plain-Old-Data (hence the name). Does not have a DB overlay cache, code hash or anything like that.

Fields

balance: U256

The balance of the account.

nonce: U256

The nonce of the account.

code: Option<Bytes>

The code of the account or None in the special case that it is unknown.

storage: BTreeMap<H256, H256>

The storage of the account.

version: U256

The version of the account.

Implementations

impl PodAccount[src]

pub fn rlp(&self) -> Bytes[src]

Returns the RLP for this account.

pub fn insert_additional(
    &self,
    db: &mut dyn HashDB<KeccakHasher, DBValue>,
    factory: &TrieFactory<Layout>
)
[src]

Place additional data into given hash DB.

Trait Implementations

impl Clone for PodAccount[src]

impl Debug for PodAccount[src]

impl Eq for PodAccount[src]

impl From<Account> for PodAccount[src]

impl PartialEq<PodAccount> for PodAccount[src]

impl Serialize for PodAccount[src]

impl StructuralEq for PodAccount[src]

impl StructuralPartialEq for PodAccount[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> From<T> for T[src]

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[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>,