pub struct Chunk {
pub id: String,
pub content: String,
pub start_line: usize,
pub end_line: usize,
pub language: Option<String>,
pub concepts: Vec<String>,
pub parent_id: Option<String>,
pub children: Vec<String>,
pub source_file: String,
}Expand description
Represents a single chunk with metadata
Fields§
§id: String§content: String§start_line: usize§end_line: usize§language: Option<String>§concepts: Vec<String>§parent_id: Option<String>§children: Vec<String>§source_file: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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