pub struct Hit {
pub repo: String,
pub path: String,
pub line: u32,
pub score: f64,
pub snippet: String,
}Expand description
One ranked search result. Field order is the JSON serialization order and part of the stable output contract.
Fields§
§repo: String§path: StringRepo-relative path, forward-slashed.
line: u321-based start line of the matched chunk.
score: f64Fused relevance score (higher is better).
snippet: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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