pub struct SemanticHit {
pub chunk_id: String,
pub chunk_text: String,
pub file: String,
pub byte_range: (u32, u32),
pub line_range: (u32, u32),
pub score: f32,
pub source: String,
}Fields§
§chunk_id: String§chunk_text: String§file: String§byte_range: (u32, u32)§line_range: (u32, u32)§score: f32§source: StringAuto Trait Implementations§
impl Freeze for SemanticHit
impl RefUnwindSafe for SemanticHit
impl Send for SemanticHit
impl Sync for SemanticHit
impl Unpin for SemanticHit
impl UnsafeUnpin for SemanticHit
impl UnwindSafe for SemanticHit
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more