Struct ethjson::test::DifficultyTestCase
source · [−]pub struct DifficultyTestCase {
pub parent_timestamp: Uint,
pub parent_difficulty: Uint,
pub parent_uncles: H256,
pub current_timestamp: Uint,
pub current_difficulty: Uint,
pub current_block_number: Uint,
}
Expand description
Blockchain test header deserializer.
Fields
parent_timestamp: Uint
Parent timestamp.
parent_difficulty: Uint
Parent difficulty.
parent_uncles: H256
Parent uncle hash.
current_timestamp: Uint
Current timestamp.
current_difficulty: Uint
Current difficulty.
current_block_number: Uint
Current block number.
Trait Implementations
sourceimpl Debug for DifficultyTestCase
impl Debug for DifficultyTestCase
sourceimpl<'de> Deserialize<'de> for DifficultyTestCase
impl<'de> Deserialize<'de> for DifficultyTestCase
sourcefn 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
sourceimpl PartialEq<DifficultyTestCase> for DifficultyTestCase
impl PartialEq<DifficultyTestCase> for DifficultyTestCase
sourcefn eq(&self, other: &DifficultyTestCase) -> bool
fn eq(&self, other: &DifficultyTestCase) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DifficultyTestCase) -> bool
fn ne(&self, other: &DifficultyTestCase) -> bool
This method tests for !=
.
impl StructuralPartialEq for DifficultyTestCase
Auto Trait Implementations
impl RefUnwindSafe for DifficultyTestCase
impl Send for DifficultyTestCase
impl Sync for DifficultyTestCase
impl Unpin for DifficultyTestCase
impl UnwindSafe for DifficultyTestCase
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