pub struct ChunkSummary {
pub id: String,
pub file: PathBuf,
pub language: Language,
pub chunk_type: ChunkType,
pub name: String,
pub signature: String,
pub content: String,
pub doc: Option<String>,
pub line_start: u32,
pub line_end: u32,
}Expand description
Summary of an indexed code chunk (function, class, etc.). Chunk metadata returned from search results
Contains all chunk information except the embedding vector.
Fields§
§id: StringUnique identifier
file: PathBufSource file path (typically absolute, as stored during indexing)
language: LanguageProgramming language
chunk_type: ChunkTypeType of code element
name: StringName of the function/class/etc.
signature: StringFunction signature or declaration
content: StringFull source code
doc: Option<String>Documentation comment if present
line_start: u32Starting line number (1-indexed)
line_end: u32Ending line number (1-indexed)
Trait Implementations§
Source§impl Clone for ChunkSummary
impl Clone for ChunkSummary
Source§fn clone(&self) -> ChunkSummary
fn clone(&self) -> ChunkSummary
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 ChunkSummary
impl RefUnwindSafe for ChunkSummary
impl Send for ChunkSummary
impl Sync for ChunkSummary
impl Unpin for ChunkSummary
impl UnwindSafe for ChunkSummary
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