pub struct GetBlockVerbosityOne {Show 19 fields
pub hash: String,
pub confirmations: i64,
pub size: i64,
pub stripped_size: Option<i64>,
pub weight: u64,
pub height: i64,
pub version: i32,
pub version_hex: String,
pub merkle_root: String,
pub tx: Vec<String>,
pub time: i64,
pub median_time: Option<i64>,
pub nonce: i64,
pub bits: String,
pub difficulty: f64,
pub chain_work: String,
pub n_tx: i64,
pub previous_block_hash: Option<String>,
pub next_block_hash: Option<String>,
}
26_2
and non-crate feature 27_0
only.Expand description
Result of JSON-RPC method getblock
with verbosity set to 1.
Fields§
§hash: String
The block hash (same as provided) in RPC call.
confirmations: i64
The number of confirmations, or -1 if the block is not on the main chain.
size: i64
The block size.
stripped_size: Option<i64>
The block size excluding witness data.
weight: u64
The block weight as defined in BIP-141.
height: i64
The block height or index.
version: i32
The block version.
version_hex: String
The block version formatted in hexadecimal.
merkle_root: String
The merkle root
tx: Vec<String>
The transaction ids.
time: i64
The block time expressed in UNIX epoch time.
median_time: Option<i64>
The median block time expressed in UNIX epoch time.
nonce: i64
The nonce (this should be only 4 bytes).
bits: String
The bits.
difficulty: f64
The difficulty.
chain_work: String
Expected number of hashes required to produce the chain up to this block (in hex).
n_tx: i64
The number of transactions in the block.
previous_block_hash: Option<String>
The hash of the previous block (if available).
next_block_hash: Option<String>
The hash of the next block (if available).
Implementations§
Source§impl GetBlockVerbosityOne
impl GetBlockVerbosityOne
Sourcepub fn into_model(
self,
) -> Result<GetBlockVerbosityOne, GetBlockVerbosityOneError>
pub fn into_model( self, ) -> Result<GetBlockVerbosityOne, GetBlockVerbosityOneError>
Converts version specific type to a version in-specific, more strongly typed type.
Trait Implementations§
Source§impl Clone for GetBlockVerbosityOne
impl Clone for GetBlockVerbosityOne
Source§fn clone(&self) -> GetBlockVerbosityOne
fn clone(&self) -> GetBlockVerbosityOne
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetBlockVerbosityOne
impl Debug for GetBlockVerbosityOne
Source§impl<'de> Deserialize<'de> for GetBlockVerbosityOne
impl<'de> Deserialize<'de> for GetBlockVerbosityOne
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetBlockVerbosityOne, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GetBlockVerbosityOne, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GetBlockVerbosityOne
impl PartialEq for GetBlockVerbosityOne
Source§impl Serialize for GetBlockVerbosityOne
impl Serialize for GetBlockVerbosityOne
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for GetBlockVerbosityOne
Auto Trait Implementations§
impl Freeze for GetBlockVerbosityOne
impl RefUnwindSafe for GetBlockVerbosityOne
impl Send for GetBlockVerbosityOne
impl Sync for GetBlockVerbosityOne
impl Unpin for GetBlockVerbosityOne
impl UnwindSafe for GetBlockVerbosityOne
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
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)
clone_to_uninit
)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>
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>
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