Struct ethcore::snapshot::BasicAccount
[−]
pub struct BasicAccount { pub nonce: U256, pub balance: U256, pub storage_root: H256, pub code_hash: H256, }
Basic account type.
Fields
nonce: U256
Nonce of the account.
balance: U256
Balance of the account.
storage_root: H256
Storage root of the account.
code_hash: H256
Code hash of the account.
Trait Implementations
impl Clone for BasicAccount
impl Clone for BasicAccount
fn clone(&self) -> BasicAccount
fn clone(&self) -> BasicAccount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Decodable for BasicAccount
impl Decodable for BasicAccount
fn decode(rlp: &Rlp) -> Result<BasicAccount, DecoderError>
fn decode(rlp: &Rlp) -> Result<BasicAccount, DecoderError>
Decode a value from RLP bytes
impl Eq for BasicAccount
impl Eq for BasicAccount
impl PartialEq<BasicAccount> for BasicAccount
impl PartialEq<BasicAccount> for BasicAccount
fn eq(&self, __arg_0: &BasicAccount) -> bool
fn eq(&self, __arg_0: &BasicAccount) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BasicAccount) -> bool
fn ne(&self, __arg_0: &BasicAccount) -> bool
This method tests for !=
.
impl Encodable for BasicAccount
impl Encodable for BasicAccount
fn rlp_append(&self, stream: &mut RlpStream)
fn rlp_append(&self, stream: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Debug for BasicAccount
impl Debug for BasicAccount
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<BasicAccount> for Account
[src]
impl From<BasicAccount> for Account
fn from(basic: BasicAccount) -> Self
[src]
fn from(basic: BasicAccount) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for BasicAccount
impl Send for BasicAccount
impl Sync for BasicAccount
impl Sync for BasicAccount