Struct cryptoapis::models::get_block_details_by_block_height_response_item_blockchain_specific::GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[][src]

pub struct GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific {
Show fields pub difficulty: String, pub nonce: String, pub size: i32, pub bits: String, pub chainwork: String, pub merkle_root: String, pub stripped_size: i32, pub version: i32, pub version_hex: String, pub weight: i32, pub extra_data: String, pub gas_limit: String, pub gas_used: String, pub mined_in_seconds: i32, pub sha3_uncles: String, pub total_difficulty: String,
}

Fields

difficulty: String
Expand description

Represents a mathematical value of how hard it is to find a valid hash for this block.

nonce: String
Expand description

Represents a random value that can be adjusted to satisfy the Proof of Work

size: i32
Expand description

Represents the total size of the block in Bytes.

bits: String
Expand description

Represents a specific sub-unit of Dash. Bits have two-decimal precision.

chainwork: String
Expand description

Represents a hexadecimal number of all the hashes necessary to produce the current chain. E.g., when converting 0000000000000000000000000000000000000000000086859f7a841475b236fd to a decimal you get 635262017308958427068157 hashes, or 635262 exahashes.

merkle_root: String
Expand description

Defines the single and final (root) node of a Merkle tree. It is the combined hash of all transactions’ hashes that are part of a blockchain block.

stripped_size: i32
Expand description

Defines the numeric representation of the block size excluding the witness data.

version: i32
Expand description

Represents the version of the specific block on the blockchain.

version_hex: String
Expand description

Is the hexadecimal string representation of the block’s version.

weight: i32
Expand description

Represents a measurement to compare the size of different transactions to each other in proportion to the block size limit.

extra_data: String
Expand description

Represents any data that can be included by the miner in the block.

gas_limit: String
Expand description

Defines the total gas limit of all transactions in the block.

gas_used: String
Expand description

Represents the total amount of gas used by all transactions in this block.

mined_in_seconds: i32
Expand description

Specifies the amount of time required for the block to be mined in seconds.

sha3_uncles: String
Expand description

Defines the combined hash of all uncles for a given parent.

total_difficulty: String
Expand description

Defines the total difficulty of the chain until this block, i.e. how difficult it is for a specific miner to mine a new block.

Implementations

impl GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

pub fn new(
    difficulty: String,
    nonce: String,
    size: i32,
    bits: String,
    chainwork: String,
    merkle_root: String,
    stripped_size: i32,
    version: i32,
    version_hex: String,
    weight: i32,
    extra_data: String,
    gas_limit: String,
    gas_used: String,
    mined_in_seconds: i32,
    sha3_uncles: String,
    total_difficulty: String
) -> GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific
[src]

Trait Implementations

impl Clone for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

fn clone(&self) -> GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific> for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

fn eq(
    &self,
    other: &GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific
) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(
    &self,
    other: &GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific
) -> bool
[src]

This method tests for !=.

impl Serialize for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
    __S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for GetBlockDetailsByBlockHeightResponseItemBlockchainSpecific[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]