Struct cuprate_rpc_types::json::GetBlockTemplateResponse
source · pub struct GetBlockTemplateResponse {Show 13 fields
pub base: ResponseBase,
pub difficulty: u64,
pub wide_difficulty: String,
pub difficulty_top64: u64,
pub height: u64,
pub reserved_offset: u64,
pub expected_reward: u64,
pub prev_hash: String,
pub seed_height: u64,
pub seed_hash: String,
pub next_seed_hash: String,
pub blocktemplate_blob: String,
pub blockhashing_blob: String,
}Expand description
Fields§
§base: ResponseBase§difficulty: u64§wide_difficulty: String§difficulty_top64: u64§height: u64§reserved_offset: u64§expected_reward: u64§prev_hash: String§seed_height: u64§seed_hash: String§next_seed_hash: String§blocktemplate_blob: String§blockhashing_blob: StringTrait Implementations§
source§impl Clone for GetBlockTemplateResponse
impl Clone for GetBlockTemplateResponse
source§fn clone(&self) -> GetBlockTemplateResponse
fn clone(&self) -> GetBlockTemplateResponse
Returns a copy 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 GetBlockTemplateResponse
impl Debug for GetBlockTemplateResponse
source§impl Default for GetBlockTemplateResponse
impl Default for GetBlockTemplateResponse
source§fn default() -> GetBlockTemplateResponse
fn default() -> GetBlockTemplateResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetBlockTemplateResponse
impl<'de> Deserialize<'de> for GetBlockTemplateResponse
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 Hash for GetBlockTemplateResponse
impl Hash for GetBlockTemplateResponse
source§impl Ord for GetBlockTemplateResponse
impl Ord for GetBlockTemplateResponse
source§fn cmp(&self, other: &GetBlockTemplateResponse) -> Ordering
fn cmp(&self, other: &GetBlockTemplateResponse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GetBlockTemplateResponse
impl PartialEq for GetBlockTemplateResponse
source§fn eq(&self, other: &GetBlockTemplateResponse) -> bool
fn eq(&self, other: &GetBlockTemplateResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for GetBlockTemplateResponse
impl PartialOrd for GetBlockTemplateResponse
source§fn partial_cmp(&self, other: &GetBlockTemplateResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &GetBlockTemplateResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for GetBlockTemplateResponse
impl Serialize for GetBlockTemplateResponse
impl Eq for GetBlockTemplateResponse
impl StructuralPartialEq for GetBlockTemplateResponse
Auto Trait Implementations§
impl Freeze for GetBlockTemplateResponse
impl RefUnwindSafe for GetBlockTemplateResponse
impl Send for GetBlockTemplateResponse
impl Sync for GetBlockTemplateResponse
impl Unpin for GetBlockTemplateResponse
impl UnwindSafe for GetBlockTemplateResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> EpeeValue for Twhere
T: EpeeObject,
impl<T> EpeeValue for Twhere
T: EpeeObject,
const MARKER: Marker = _
fn read<B>(r: &mut B, marker: &Marker) -> Result<T, Error>where
B: Buf,
fn write<B>(self, w: &mut B) -> Result<(), Error>where
B: BufMut,
fn should_write(&self) -> bool
source§fn epee_default_value() -> Option<Self>
fn epee_default_value() -> Option<Self>
This is different than default field values and instead is the default
value of a whole type. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 200 bytes