pub enum ExplanationNode {
RuleRef {
id: ExplainedRuleId,
name: RulePath,
result: RuleResultValue,
},
Compose {
expression: String,
operator: Option<ArithmeticComputation>,
operands: Vec<ExplanationNode>,
},
Data {
name: DataPath,
result: RuleResultValue,
},
DataUnused {
name: DataPath,
},
Conversion {
expression: String,
steps: Vec<SerializedConversionTraceStep>,
operands: Vec<ExplanationNode>,
},
Veto {
message: Option<String>,
},
Row {
number: usize,
appended: bool,
key: Vec<ExplanationNode>,
fields: Vec<ExplanationNode>,
},
Filter {
condition: String,
matched: usize,
total: usize,
children: Vec<ExplanationNode>,
},
}Variants§
RuleRef
Reference to a rule in the enclosing explanation’s rules table.
Compose
Data
Evaluated / bound data narration. Result fields flatten like crate::evaluation::response::RuleResult.
DataUnused
Structural mention of a data path that was not looked up for this cause (short-circuit skip or static record narration without a binding).
Conversion
Veto
Row
One instance-list row the enclosing command read.
Filter
Summary of a where filter: how many of the input rows matched.
Trait Implementations§
Source§impl Clone for ExplanationNode
impl Clone for ExplanationNode
Source§impl Debug for ExplanationNode
impl Debug for ExplanationNode
impl Eq for ExplanationNode
Source§impl PartialEq for ExplanationNode
impl PartialEq for ExplanationNode
Source§impl Serialize for ExplanationNode
impl Serialize for ExplanationNode
impl StructuralPartialEq for ExplanationNode
Auto Trait Implementations§
impl Freeze for ExplanationNode
impl RefUnwindSafe for ExplanationNode
impl Send for ExplanationNode
impl Sync for ExplanationNode
impl Unpin for ExplanationNode
impl UnsafeUnpin for ExplanationNode
impl UnwindSafe for ExplanationNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.