pub struct ParseAnalysis {Show 14 fields
pub call_tree: CallNode,
pub total_cu: u64,
pub cpi_count: u32,
pub cpi_depth: u32,
pub requested_limit: Option<u64>,
pub over_requested: Option<u64>,
pub unattributed_pct: f64,
pub scopes: Vec<ScopeResult>,
pub scope_marker_count: usize,
pub simulation_success: bool,
pub log_line_count: usize,
pub validation_after_cpi: bool,
pub warnings: Vec<String>,
pub logs_complete: bool,
}Expand description
Structured result of analysing a single transaction’s logs.
Fields§
§call_tree: CallNodeReconstructed call tree (root included).
total_cu: u64Total CU consumed across top-level (depth-1) invocations.
cpi_count: u32Number of CPIs (depth >= 2).
cpi_depth: u32CPI nesting depth (max depth beyond the entrypoint).
requested_limit: Option<u64>Estimated requested compute limit, if derivable.
over_requested: Option<u64>Requested but unused CU, if derivable.
unattributed_pct: f64Percentage of total CU not attributed to a CPI child (0..=100).
scopes: Vec<ScopeResult>Scope attribution results.
scope_marker_count: usizeNumber of scope markers detected.
simulation_success: boolWhether the transaction simulated without a failed line.
log_line_count: usizeNumber of Program log: / Program data: lines emitted (log volume).
validation_after_cpi: boolWhether a validation scope began after a CPI was issued — a hint that cheap checks run too late. Only set when scope markers are present.
warnings: Vec<String>Parser warnings collected along the way.
logs_complete: boolWhether the logs parsed cleanly (no warnings).
Trait Implementations§
Source§impl Clone for ParseAnalysis
impl Clone for ParseAnalysis
Source§fn clone(&self) -> ParseAnalysis
fn clone(&self) -> ParseAnalysis
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more