pub struct Work {
pub pow_hash: FixedBytes<32>,
pub seed_hash: FixedBytes<32>,
pub target: FixedBytes<32>,
pub number: Option<u64>,
}
Available on crate feature
eth
only.Expand description
The result of an eth_getWork
request
Fields§
§pow_hash: FixedBytes<32>
The proof-of-work hash.
seed_hash: FixedBytes<32>
The seed hash.
target: FixedBytes<32>
The target.
number: Option<u64>
The block number: this isn’t always stored.
Trait Implementations§
source§impl<'a> Deserialize<'a> for Work
Available on crate feature serde
only.
impl<'a> Deserialize<'a> for Work
Available on crate feature
serde
only.source§fn deserialize<D>(
deserializer: D,
) -> Result<Work, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
fn deserialize<D>(
deserializer: D,
) -> Result<Work, <D as Deserializer<'a>>::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Work
Available on crate feature serde
only.
impl Serialize for Work
Available on crate feature
serde
only.source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Work
impl Eq for Work
impl StructuralPartialEq for Work
Auto Trait Implementations§
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnwindSafe for Work
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more