pub struct DocChunk {
pub text: String,
pub headings: Option<Vec<String>>,
pub doc_items: Vec<ChunkItem>,
}Expand description
One chunk — the analogue of docling’s DocChunk (text + DocMeta).
Fields§
§text: StringThe chunk body (markdown-flavoured, unescaped — same text docling puts
in DocChunk.text).
headings: Option<Vec<String>>The heading path above this chunk, outermost first (DocMeta.headings;
None when the chunk sits above any heading).
doc_items: Vec<ChunkItem>The document items the chunk was built from (DocMeta.doc_items).
Trait Implementations§
impl StructuralPartialEq for DocChunk
Auto Trait Implementations§
impl Freeze for DocChunk
impl RefUnwindSafe for DocChunk
impl Send for DocChunk
impl Sync for DocChunk
impl Unpin for DocChunk
impl UnsafeUnpin for DocChunk
impl UnwindSafe for DocChunk
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