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

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.

Implementations

Convert Account to a PodAccount. NOTE: This will silently fail unless the account is fully cached.

Returns the RLP for this account.

Place additional data into given hash DB.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.