pub struct ReceiptIndexRecord {Show 18 fields
pub index_key: [u8; 16],
pub layout_id: [u8; 8],
pub phase: u8,
pub compat_impact: u8,
pub migration_flags: u8,
pub changed_fields: u64,
pub changed_field_count: u16,
pub segment_changed_mask: u16,
pub changed_segment_count: u8,
pub policy_flags: u32,
pub validation_bundle_id: u16,
pub old_size: u32,
pub new_size: u32,
pub changed_bytes: u32,
pub had_failure: bool,
pub failed_error_code: u32,
pub failed_invariant_idx: u8,
pub failure_stage: u8,
}Expand description
Stable, indexer-oriented projection of a decoded receipt.
This keeps the 72-byte wire format unchanged while giving off-chain stores a compact row shape to key, filter, and aggregate by layout, phase, changed fields, touched segments, compatibility impact, and failure metadata.
Fields§
§index_key: [u8; 16]Deterministic grouping key: layout_id || after_fingerprint.
layout_id: [u8; 8]Layout identifier of the account this receipt was produced for.
phase: u8Instruction phase at which the receipt was sealed.
compat_impact: u8Compatibility class of the mutation.
migration_flags: u8Bitmask of migration-related flags.
changed_fields: u64Bitmask of changed field indices.
changed_field_count: u16Number of changed field bits set in changed_fields.
segment_changed_mask: u16Bitmask of changed segment indices.
changed_segment_count: u8Number of changed segment bits set in segment_changed_mask.
policy_flags: u32Policy/capability flags active for the instruction.
validation_bundle_id: u16Program-defined validation bundle identifier.
old_size: u32Account data size before mutation.
new_size: u32Account data size after mutation.
changed_bytes: u32Total number of changed bytes.
had_failure: boolWhether the receipt recorded a failure path.
failed_error_code: u32Program error code associated with the failure, or zero when none.
failed_invariant_idx: u8Invariant index associated with the failure, or FAILED_INVARIANT_NONE.
failure_stage: u8Stage at which the failure occurred.
Trait Implementations§
Source§impl Clone for ReceiptIndexRecord
impl Clone for ReceiptIndexRecord
Source§fn clone(&self) -> ReceiptIndexRecord
fn clone(&self) -> ReceiptIndexRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReceiptIndexRecord
impl Debug for ReceiptIndexRecord
Source§impl PartialEq for ReceiptIndexRecord
impl PartialEq for ReceiptIndexRecord
Source§fn eq(&self, other: &ReceiptIndexRecord) -> bool
fn eq(&self, other: &ReceiptIndexRecord) -> bool
self and other values to be equal, and is used by ==.