Struct typedb_driver::logic::explanation::Explanation
source · pub struct Explanation {
pub rule: Rule,
pub conclusion: ConceptMap,
pub condition: ConceptMap,
pub variable_mapping: HashMap<String, Vec<String>>,
}
Expand description
An explanation of which rule was used for inferring the explained concept, the condition of the rule, the conclusion of the rule, and the mapping of variables between the query and the rule’s conclusion.
Fields§
§rule: Rule
The Rule for this Explanation.
conclusion: ConceptMap
The Conclusion for this Explanation.
condition: ConceptMap
The Condition for this Explanation.
variable_mapping: HashMap<String, Vec<String>>
The mapping from query variables to rule variables for this Explanation
.
Trait Implementations§
source§impl Debug for Explanation
impl Debug for Explanation
source§impl PartialEq for Explanation
impl PartialEq for Explanation
source§fn eq(&self, other: &Explanation) -> bool
fn eq(&self, other: &Explanation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Explanation
Auto Trait Implementations§
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnwindSafe for Explanation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request