pub struct QueryResult {
pub label: String,
pub node_type: NodeType,
pub access_count: u64,
pub score: f64,
pub path: Vec<String>,
pub node_id: NodeId,
}Expand description
A single result from a query.
Fields§
§label: StringThe concept label.
node_type: NodeTypeNode type (Concept, Insight, Anomaly).
access_count: u64How many times this node has been accessed/reinforced.
score: f64Relevance score (path weight × access count).
path: Vec<String>The path from a seed term to this result.
node_id: NodeIdNode ID for further traversal.
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 moreSource§impl Debug for QueryResult
impl Debug for QueryResult
Auto 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