pub struct BlockFull {
pub header: BlockHeaderWire,
pub body_hex: String,
pub canonical: bool,
}Expand description
Full block envelope used by get_block* responses.
The header is JSON-native; the body is hex-encoded Chia-streamable
bytes. Consumers that need to decode the body must route through
dig-block’s streamable decoder.
Fields§
§header: BlockHeaderWireParsed block header (JSON-native).
body_hex: StringHex-encoded chia-streamable body bytes.
canonical: boolWhether this block is on the canonical chain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockFull
impl<'de> Deserialize<'de> for BlockFull
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 BlockFull
impl RefUnwindSafe for BlockFull
impl Send for BlockFull
impl Sync for BlockFull
impl Unpin for BlockFull
impl UnsafeUnpin for BlockFull
impl UnwindSafe for BlockFull
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