pub struct MiningRequest {
pub job_id: String,
pub mining_hash: String,
pub distance_threshold: String,
pub nonce_start: String,
pub nonce_end: String,
}
Expand description
Request payload sent from Node to Miner (/mine
endpoint).
Fields§
§job_id: String
§mining_hash: String
Hex encoded header hash (32 bytes -> 64 chars, no 0x prefix)
distance_threshold: String
Distance threshold (u64 as string)
nonce_start: String
Hex encoded start nonce (U512 -> 128 chars, no 0x prefix)
nonce_end: String
Hex encoded end nonce (U512 -> 128 chars, no 0x prefix)
Trait Implementations§
Source§impl Clone for MiningRequest
impl Clone for MiningRequest
Source§fn clone(&self) -> MiningRequest
fn clone(&self) -> MiningRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MiningRequest
impl Debug for MiningRequest
Source§impl<'de> Deserialize<'de> for MiningRequest
impl<'de> Deserialize<'de> for MiningRequest
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
Auto Trait Implementations§
impl Freeze for MiningRequest
impl RefUnwindSafe for MiningRequest
impl Send for MiningRequest
impl Sync for MiningRequest
impl Unpin for MiningRequest
impl UnwindSafe for MiningRequest
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