pub struct QueryResult {
pub provable: bool,
pub bindings: HashMap<String, Value>,
pub proof_trace: ProofTrace,
pub missing_facts: Vec<String>,
pub stats: QueryStats,
}Expand description
Result of a query operation
Fields§
§provable: boolWhether the query goal is provable
bindings: HashMap<String, Value>Variable bindings that satisfy the query
proof_trace: ProofTraceTrace of how the goal was proven
missing_facts: Vec<String>Facts that are missing to prove the goal
stats: QueryStatsExecution statistics
Implementations§
Source§impl QueryResult
impl QueryResult
Sourcepub fn success(
bindings: HashMap<String, Value>,
proof: ProofTrace,
stats: QueryStats,
) -> Self
pub fn success( bindings: HashMap<String, Value>, proof: ProofTrace, stats: QueryStats, ) -> Self
Create a successful query result
Sourcepub fn failure(missing: Vec<String>, stats: QueryStats) -> Self
pub fn failure(missing: Vec<String>, stats: QueryStats) -> Self
Create a failed query result
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnwindSafe for QueryResult
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