pub struct Document {
pub dataset_id: String,
pub document_id: String,
pub title: String,
pub text: String,
pub metadata: Metadata,
}Expand description
A document to ingest.
Fields§
§dataset_id: String§document_id: String§title: String§text: String§metadata: MetadataCopied onto every chunk (plus heading and chunk_index).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Forget for Document
impl Freeze for Document
impl Move for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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