pub struct ChunkItem {
pub self_ref: String,
pub kind: ChunkItemKind,
pub text: String,
}Expand description
One document item contributing to a chunk — the analogue of an entry in
docling’s DocMeta.doc_items.
Fields§
§self_ref: StringThe item’s ref in DoclingDocument::export_to_json output
(#/texts/12, #/tables/0, #/pictures/1, …).
kind: ChunkItemKind§text: StringThe item serialized standalone (docling re-serializes individual
items when splitting an oversized multi-item chunk — e.g. a nested
list item flattens to - text with no indentation).
Trait Implementations§
impl StructuralPartialEq for ChunkItem
Auto Trait Implementations§
impl Freeze for ChunkItem
impl RefUnwindSafe for ChunkItem
impl Send for ChunkItem
impl Sync for ChunkItem
impl Unpin for ChunkItem
impl UnsafeUnpin for ChunkItem
impl UnwindSafe for ChunkItem
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