pub struct ReferenceMatch {
pub match_id: String,
pub span: Span,
pub referenced_symbol: String,
pub reference_kind: Option<String>,
pub target_symbol_id: Option<String>,
pub score: Option<u64>,
pub content_hash: Option<String>,
pub symbol_kind_from_chunk: Option<String>,
pub snippet: Option<String>,
pub snippet_truncated: Option<bool>,
}Expand description
A reference match from a reference search operation.
Represents a location where a symbol is referenced (used) in code.
Used by the --mode references search mode.
Fields§
§match_id: StringUnique match identifier
span: SpanSource code location of the reference
referenced_symbol: StringName of the symbol being referenced
reference_kind: Option<String>Kind of reference (read, write, call, etc.)
target_symbol_id: Option<String>Symbol ID of the referenced symbol
score: Option<u64>Relevance score
content_hash: Option<String>SHA-256 hash of the content
symbol_kind_from_chunk: Option<String>Symbol kind from code_chunks table (legacy field)
snippet: Option<String>Source code snippet at the reference location
snippet_truncated: Option<bool>Whether the snippet was truncated
Trait Implementations§
Source§impl Clone for ReferenceMatch
impl Clone for ReferenceMatch
Source§fn clone(&self) -> ReferenceMatch
fn clone(&self) -> ReferenceMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReferenceMatch
impl Debug for ReferenceMatch
Auto Trait Implementations§
impl Freeze for ReferenceMatch
impl RefUnwindSafe for ReferenceMatch
impl Send for ReferenceMatch
impl Sync for ReferenceMatch
impl Unpin for ReferenceMatch
impl UnsafeUnpin for ReferenceMatch
impl UnwindSafe for ReferenceMatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more