pub struct MiningResult {
pub status: ApiResponseStatus,
pub job_id: String,
pub nonce: Option<String>,
pub work: Option<String>,
pub hash_count: u64,
pub elapsed_time: f64,
}
Expand description
Response payload for checking job results (/result/{job_id}
).
Fields§
§status: ApiResponseStatus
§job_id: String
§nonce: Option<String>
Hex encoded U512 representation of the final/winning nonce (no 0x prefix).
work: Option<String>
Hex encoded [u8; 64] representation of the winning nonce (128 chars, no 0x prefix). This is the primary field the Node uses for verification.
hash_count: u64
§elapsed_time: f64
Trait Implementations§
Source§impl Clone for MiningResult
impl Clone for MiningResult
Source§fn clone(&self) -> MiningResult
fn clone(&self) -> MiningResult
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 MiningResult
impl Debug for MiningResult
Source§impl<'de> Deserialize<'de> for MiningResult
impl<'de> Deserialize<'de> for MiningResult
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 MiningResult
impl RefUnwindSafe for MiningResult
impl Send for MiningResult
impl Sync for MiningResult
impl Unpin for MiningResult
impl UnwindSafe for MiningResult
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