pub struct BlockPayload {
pub parent_block_ids: Vec<ObjectId>,
pub kind: BlockKind,
pub patch_ids: Vec<ObjectId>,
pub state_merkle_root: MerkleRoot,
pub snapshot_blob_ref: Option<ObjectId>,
}Expand description
Block payload. Block summaries are intentionally not identity-bearing.
Fields§
§parent_block_ids: Vec<ObjectId>Parent block IDs, sorted unless a later design adds semantic parent roles.
kind: BlockKindBlock kind.
patch_ids: Vec<ObjectId>Patch IDs in canonical block patch order.
state_merkle_root: MerkleRootState Merkle root.
snapshot_blob_ref: Option<ObjectId>Optional full snapshot blob reference.
Implementations§
Source§impl BlockPayload
impl BlockPayload
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self>
Decode a block payload from Prikk canonical TLV bytes.
Trait Implementations§
Source§impl CanonicalEncode for BlockPayload
impl CanonicalEncode for BlockPayload
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Encode this value into canonical bytes.
Source§impl Clone for BlockPayload
impl Clone for BlockPayload
Source§fn clone(&self) -> BlockPayload
fn clone(&self) -> BlockPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BlockPayload
impl Debug for BlockPayload
impl Eq for BlockPayload
Source§impl PartialEq for BlockPayload
impl PartialEq for BlockPayload
Source§fn eq(&self, other: &BlockPayload) -> bool
fn eq(&self, other: &BlockPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockPayload
Auto Trait Implementations§
impl Freeze for BlockPayload
impl RefUnwindSafe for BlockPayload
impl Send for BlockPayload
impl Sync for BlockPayload
impl Unpin for BlockPayload
impl UnsafeUnpin for BlockPayload
impl UnwindSafe for BlockPayload
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