pub struct ContextChunk {
pub chunk_id: Uuid,
pub document_path: String,
pub text: String,
pub score: f32,
pub sequence: u32,
}Expand description
A chunk in the assembled context with provenance.
Fields§
§chunk_id: Uuid§document_path: String§text: String§score: f32§sequence: u32Trait Implementations§
Source§impl Clone for ContextChunk
impl Clone for ContextChunk
Source§fn clone(&self) -> ContextChunk
fn clone(&self) -> ContextChunk
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 moreAuto Trait Implementations§
impl Freeze for ContextChunk
impl RefUnwindSafe for ContextChunk
impl Send for ContextChunk
impl Sync for ContextChunk
impl Unpin for ContextChunk
impl UnsafeUnpin for ContextChunk
impl UnwindSafe for ContextChunk
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