pub struct ChunkSummary {Show 14 fields
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,
pub content_hash: String,
pub window_idx: Option<i32>,
pub parent_id: Option<String>,
pub parent_type_name: Option<String>,
}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 (always forward-slash normalized, not OS-native).
Paths are normalized by normalize_path() during indexing: backslashes
are converted to forward slashes for consistent cross-platform storage and
querying. The path itself is typically absolute.
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)
content_hash: StringContent hash (blake3) for embedding cache and summary lookup
window_idx: Option<i32>Window index (None = not windowed, 0 = first window, 1+ = subsequent)
parent_id: Option<String>Parent chunk ID if this is a child chunk (table, windowed)
parent_type_name: Option<String>For methods: name of enclosing class/struct/impl
Trait Implementations§
Source§impl Clone for ChunkSummary
impl Clone for ChunkSummary
Source§fn clone(&self) -> ChunkSummary
fn clone(&self) -> ChunkSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChunkSummary
impl Debug for ChunkSummary
Source§impl From<&ChunkSummary> for Chunk
impl From<&ChunkSummary> for Chunk
Source§fn from(cs: &ChunkSummary) -> Self
fn from(cs: &ChunkSummary) -> Self
Auto Trait Implementations§
impl Freeze for ChunkSummary
impl RefUnwindSafe for ChunkSummary
impl Send for ChunkSummary
impl Sync for ChunkSummary
impl Unpin for ChunkSummary
impl UnsafeUnpin 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
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>
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>
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