pub struct BlockInfo {
pub number: u64,
pub hash: String,
pub parent_hash: String,
pub timestamp: u64,
pub transactions: Vec<String>,
pub state_root: Option<String>,
pub extrinsics_root: Option<String>,
pub extrinsic_count: u32,
pub event_count: Option<u32>,
pub is_finalized: bool,
}Expand description
Block information
Fields§
§number: u64§hash: String§parent_hash: String§timestamp: u64§transactions: Vec<String>§state_root: Option<String>§extrinsics_root: Option<String>§extrinsic_count: u32§event_count: Option<u32>§is_finalized: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for BlockInfo
impl<'de> Deserialize<'de> for BlockInfo
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
Auto Trait Implementations§
impl Freeze for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnwindSafe for BlockInfo
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