pub struct Cause {
pub condition: String,
pub value: String,
pub children: Vec<ExplanationNode>,
}Expand description
One evaluated unless condition, stated as a fact.
condition is the true-form expression text: a falsified comparison is
flipped to its complement (distance < 5 mile that failed becomes
distance >= 5 mile) so the explanation states what held. value is
"true" for stated facts, or "false" when the condition could not be
flipped into a positive statement. children show the inputs that drove
the condition (data values, embedded rule explanations).
Fields§
§condition: String§value: String§children: Vec<ExplanationNode>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnsafeUnpin for Cause
impl UnwindSafe for Cause
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