pub struct ExplanationModel {Show 19 fields
pub session_id: String,
pub revision: String,
pub scope: ExplanationScope,
pub task_id: Option<String>,
pub status: String,
pub goals: Vec<ExplanationEntry>,
pub actions: Vec<ExplanationEntry>,
pub changes: Vec<ExplanationEntry>,
pub edit_operations: usize,
pub decisions: Vec<DecisionEntry>,
pub verification: Vec<VerificationEntry>,
pub token_breakdowns: Vec<TokenBreakdownEntry>,
pub failures: Vec<ExplanationEntry>,
pub review_priorities: Vec<ReviewSignal>,
pub plan_evolution: Vec<ExplanationEntry>,
pub graph: Vec<GraphEdge>,
pub usage: Option<Usage>,
pub cost_usd: Option<Number>,
pub completeness: EvidenceCompleteness,
}Expand description
Shared facts consumed by terminal, diagrams, browser, and offline report.
Fields§
§session_id: StringCanonical session identity.
revision: StringDigest of the complete retained snapshot.
scope: ExplanationScopeRequested task or session scope.
task_id: Option<String>Recorded root task identity, if available.
status: StringRecorded lifecycle result; unavailable facts remain explicit.
goals: Vec<ExplanationEntry>Original recorded task requests.
actions: Vec<ExplanationEntry>Lifecycle-reduced actions in recorded order.
changes: Vec<ExplanationEntry>Distinct paths with successful recorded changes.
edit_operations: usizeNumber of distinct successful file-change operations.
decisions: Vec<DecisionEntry>Explicit public decisions, labeled agent-reported.
verification: Vec<VerificationEntry>Verification commands with honest exit status and freshness.
token_breakdowns: Vec<TokenBreakdownEntry>Recorded request-prefix token attribution for each retained turn.
failures: Vec<ExplanationEntry>Failed, denied, blocked, and unconfirmed operations.
review_priorities: Vec<ReviewSignal>Sorted evidence-backed review signals.
plan_evolution: Vec<ExplanationEntry>Recorded plans, corrections, and approvals.
graph: Vec<GraphEdge>Recorded order and action-to-file edges.
usage: Option<Usage>Canonical token usage, only when recorded.
cost_usd: Option<Number>Recorded total session cost, absent for task scope.
completeness: EvidenceCompletenessVisible uncertainty about retained evidence.
Implementations§
Source§impl ExplanationModel
impl ExplanationModel
Sourcepub fn evidence_references(&self) -> Vec<EvidenceRef>
pub fn evidence_references(&self) -> Vec<EvidenceRef>
Unique substantive sources in this projection, sorted by recorded order.
Trait Implementations§
Source§impl Clone for ExplanationModel
impl Clone for ExplanationModel
Source§impl Debug for ExplanationModel
impl Debug for ExplanationModel
Source§impl<'de> Deserialize<'de> for ExplanationModel
impl<'de> Deserialize<'de> for ExplanationModel
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>,
impl Eq for ExplanationModel
Source§impl PartialEq for ExplanationModel
impl PartialEq for ExplanationModel
Source§impl Serialize for ExplanationModel
impl Serialize for ExplanationModel
impl StructuralPartialEq for ExplanationModel
Auto Trait Implementations§
impl Freeze for ExplanationModel
impl RefUnwindSafe for ExplanationModel
impl Send for ExplanationModel
impl Sync for ExplanationModel
impl Unpin for ExplanationModel
impl UnsafeUnpin for ExplanationModel
impl UnwindSafe for ExplanationModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.