pub struct SemanticMatch {
pub unit_id: u64,
pub name: String,
pub qualified_name: String,
pub unit_type: String,
pub file_path: String,
pub relevance: f64,
pub explanation: String,
}Expand description
A single match from semantic search.
Fields§
§unit_id: u64Unit ID.
name: StringUnit name.
qualified_name: StringQualified name.
unit_type: StringType label.
file_path: StringFile path.
relevance: f64Combined relevance score (0.0–1.0).
explanation: StringWhy this matched.
Trait Implementations§
Source§impl Clone for SemanticMatch
impl Clone for SemanticMatch
Source§fn clone(&self) -> SemanticMatch
fn clone(&self) -> SemanticMatch
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 SemanticMatch
impl Debug for SemanticMatch
Source§impl<'de> Deserialize<'de> for SemanticMatch
impl<'de> Deserialize<'de> for SemanticMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SemanticMatch
impl RefUnwindSafe for SemanticMatch
impl Send for SemanticMatch
impl Sync for SemanticMatch
impl Unpin for SemanticMatch
impl UnsafeUnpin for SemanticMatch
impl UnwindSafe for SemanticMatch
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