pub struct SearchDoc {
pub doc_id: String,
pub kind: DocKind,
pub path: String,
pub span_start: Option<u32>,
pub title: String,
pub body_text: String,
pub owner_symbol_id: Option<String>,
}Expand description
A searchable chunk from a non-code file (markdown, config, manifest, etc.).
Fields§
§doc_id: StringStable content-addressable id: sha256 hex of “{path}:{span_start}”.
kind: DocKindBroad kind category.
path: StringRelative file path from project root.
span_start: Option<u32>Optional start line (1-based). None = whole-file chunk.
title: StringHuman-readable title (heading text, target name, key path, etc.).
body_text: StringSearchable body text (stripped of formatting).
owner_symbol_id: Option<String>qname of the nearest semantic symbol that “owns” this doc, if known.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchDoc
impl RefUnwindSafe for SearchDoc
impl Send for SearchDoc
impl Sync for SearchDoc
impl Unpin for SearchDoc
impl UnsafeUnpin for SearchDoc
impl UnwindSafe for SearchDoc
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