Struct eest_types::BlockchainTestUnit
source · pub struct BlockchainTestUnit {
pub network: SpecName,
pub genesis_block_header: BlockHeader,
pub pre: HashMap<Address, AccountInfo>,
pub post_state: HashMap<Address, AccountInfo>,
pub last_block_hash: Option<H256>,
pub config: Config,
pub genesis_rlp: Bytes,
pub blocks: Vec<TestBlock>,
pub seal_engine: String,
pub info: Option<Value>,
}
Fields§
§network: SpecName
§genesis_block_header: BlockHeader
§pre: HashMap<Address, AccountInfo>
§post_state: HashMap<Address, AccountInfo>
§last_block_hash: Option<H256>
§config: Config
§genesis_rlp: Bytes
§blocks: Vec<TestBlock>
§seal_engine: String
§info: Option<Value>
Test info is optional.
Trait Implementations§
source§impl Debug for BlockchainTestUnit
impl Debug for BlockchainTestUnit
source§impl<'de> Deserialize<'de> for BlockchainTestUnit
impl<'de> Deserialize<'de> for BlockchainTestUnit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BlockchainTestUnit
impl PartialEq for BlockchainTestUnit
source§fn eq(&self, other: &BlockchainTestUnit) -> bool
fn eq(&self, other: &BlockchainTestUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockchainTestUnit
impl StructuralPartialEq for BlockchainTestUnit
Auto Trait Implementations§
impl Freeze for BlockchainTestUnit
impl RefUnwindSafe for BlockchainTestUnit
impl Send for BlockchainTestUnit
impl Sync for BlockchainTestUnit
impl Unpin for BlockchainTestUnit
impl UnwindSafe for BlockchainTestUnit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.