Skip to main content

ReceiptIndexRecord

Struct ReceiptIndexRecord 

Source
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: u8

Instruction phase at which the receipt was sealed.

§compat_impact: u8

Compatibility class of the mutation.

§migration_flags: u8

Bitmask of migration-related flags.

§changed_fields: u64

Bitmask of changed field indices.

§changed_field_count: u16

Number of changed field bits set in changed_fields.

§segment_changed_mask: u16

Bitmask of changed segment indices.

§changed_segment_count: u8

Number of changed segment bits set in segment_changed_mask.

§policy_flags: u32

Policy/capability flags active for the instruction.

§validation_bundle_id: u16

Program-defined validation bundle identifier.

§old_size: u32

Account data size before mutation.

§new_size: u32

Account data size after mutation.

§changed_bytes: u32

Total number of changed bytes.

§had_failure: bool

Whether the receipt recorded a failure path.

§failed_error_code: u32

Program error code associated with the failure, or zero when none.

§failed_invariant_idx: u8

Invariant index associated with the failure, or FAILED_INVARIANT_NONE.

§failure_stage: u8

Stage at which the failure occurred.

Trait Implementations§

Source§

impl Clone for ReceiptIndexRecord

Source§

fn clone(&self) -> ReceiptIndexRecord

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ReceiptIndexRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ReceiptIndexRecord

Source§

fn eq(&self, other: &ReceiptIndexRecord) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ReceiptIndexRecord

Source§

impl Eq for ReceiptIndexRecord

Source§

impl StructuralPartialEq for ReceiptIndexRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.