Struct rosetta_types::block_identifier::BlockIdentifier
source · pub struct BlockIdentifier {
pub index: u64,
pub hash: String,
}Expand description
BlockIdentifier : The block_identifier uniquely identifies a block in a particular network.
Fields§
§index: u64This is also known as the block height.
hash: StringThis should be normalized according to the case specified in the block_hash_case network options.
Implementations§
source§impl BlockIdentifier
impl BlockIdentifier
sourcepub fn new(index: u64, hash: String) -> BlockIdentifier
pub fn new(index: u64, hash: String) -> BlockIdentifier
The block_identifier uniquely identifies a block in a particular network.
Trait Implementations§
source§impl Clone for BlockIdentifier
impl Clone for BlockIdentifier
source§fn clone(&self) -> BlockIdentifier
fn clone(&self) -> BlockIdentifier
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 BlockIdentifier
impl Debug for BlockIdentifier
source§impl Default for BlockIdentifier
impl Default for BlockIdentifier
source§fn default() -> BlockIdentifier
fn default() -> BlockIdentifier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockIdentifier
impl<'de> Deserialize<'de> for BlockIdentifier
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 PartialEq<BlockIdentifier> for BlockIdentifier
impl PartialEq<BlockIdentifier> for BlockIdentifier
source§fn eq(&self, other: &BlockIdentifier) -> bool
fn eq(&self, other: &BlockIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.