pub struct BlockInfo {
pub height: u64,
pub hash: String,
pub parent_hash: String,
pub view: u64,
pub proposer: u64,
pub payload_size: usize,
}Expand description
Block info returned by get_block / get_block_by_hash
Fields§
§height: u64§hash: String§parent_hash: String§view: u64§proposer: u64§payload_size: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnsafeUnpin 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