Struct chainhook_types::BlockIdentifier
source · pub struct BlockIdentifier {
pub index: u64,
pub hash: String,
}Expand description
BlockIdentifier uniquely identifies a block in a particular network.
Fields§
§index: u64Also known as the block height.
hash: StringTrait 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 Display for BlockIdentifier
impl Display for BlockIdentifier
source§impl Hash for BlockIdentifier
impl Hash for BlockIdentifier
source§impl Ord for BlockIdentifier
impl Ord for BlockIdentifier
source§impl PartialEq<BlockIdentifier> for BlockIdentifier
impl PartialEq<BlockIdentifier> for BlockIdentifier
source§impl PartialOrd<BlockIdentifier> for BlockIdentifier
impl PartialOrd<BlockIdentifier> for BlockIdentifier
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 BlockIdentifier
impl Serialize for BlockIdentifier
impl Eq for BlockIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for BlockIdentifier
impl Send for BlockIdentifier
impl Sync for BlockIdentifier
impl Unpin for BlockIdentifier
impl UnwindSafe for BlockIdentifier
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