pub struct ScoredChunk {
pub chunk: Chunk,
pub score: f32,
pub document_path: String,
}Expand description
A search result with its relevance score and document path.
Fields§
§chunk: Chunk§score: f32§document_path: StringTrait Implementations§
Source§impl Clone for ScoredChunk
impl Clone for ScoredChunk
Source§fn clone(&self) -> ScoredChunk
fn clone(&self) -> ScoredChunk
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 ScoredChunk
impl RefUnwindSafe for ScoredChunk
impl Send for ScoredChunk
impl Sync for ScoredChunk
impl Unpin for ScoredChunk
impl UnsafeUnpin for ScoredChunk
impl UnwindSafe for ScoredChunk
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