pub struct ChunkMetadata {
pub file_path: String,
pub root_path: Option<String>,
pub project: Option<String>,
pub start_line: usize,
pub end_line: usize,
pub language: Option<String>,
pub extension: Option<String>,
pub file_hash: String,
pub indexed_at: i64,
}Expand description
Metadata stored with each code chunk in the vector database.
Fields§
§file_path: StringFile path relative to indexed root.
root_path: Option<String>Absolute path to the indexed root directory.
project: Option<String>Project name (for multi-project support).
start_line: usizeStarting line number.
end_line: usizeEnding line number.
language: Option<String>Programming language.
extension: Option<String>File extension.
file_hash: StringSHA256 hash of the file content.
indexed_at: i64Timestamp when indexed.
Trait Implementations§
Source§impl Clone for ChunkMetadata
impl Clone for ChunkMetadata
Source§fn clone(&self) -> ChunkMetadata
fn clone(&self) -> ChunkMetadata
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 ChunkMetadata
impl Debug for ChunkMetadata
Source§impl<'de> Deserialize<'de> for ChunkMetadata
impl<'de> Deserialize<'de> for ChunkMetadata
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 ChunkMetadata
impl RefUnwindSafe for ChunkMetadata
impl Send for ChunkMetadata
impl Sync for ChunkMetadata
impl Unpin for ChunkMetadata
impl UnsafeUnpin for ChunkMetadata
impl UnwindSafe for ChunkMetadata
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