Struct common_types::basic_account::BasicAccount
source · [−]pub struct BasicAccount {
pub nonce: U256,
pub balance: U256,
pub storage_root: H256,
pub code_hash: H256,
}
Expand description
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
sourceimpl Clone for BasicAccount
impl Clone for BasicAccount
sourcefn clone(&self) -> BasicAccount
fn clone(&self) -> BasicAccount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BasicAccount
impl Debug for BasicAccount
sourceimpl Decodable for BasicAccount
impl Decodable for BasicAccount
sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl Encodable for BasicAccount
impl Encodable for BasicAccount
sourceimpl PartialEq<BasicAccount> for BasicAccount
impl PartialEq<BasicAccount> for BasicAccount
sourcefn eq(&self, other: &BasicAccount) -> bool
fn eq(&self, other: &BasicAccount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BasicAccount) -> bool
fn ne(&self, other: &BasicAccount) -> bool
This method tests for !=
.
impl Eq for BasicAccount
impl StructuralEq for BasicAccount
impl StructuralPartialEq for BasicAccount
Auto Trait Implementations
impl RefUnwindSafe for BasicAccount
impl Send for BasicAccount
impl Sync for BasicAccount
impl Unpin for BasicAccount
impl UnwindSafe for BasicAccount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more