pub struct Hit<'s> {
pub key: UrlKey,
pub url: &'s str,
pub title: Option<&'s str>,
pub snippet: Option<&'s str>,
pub anchor: Option<Anchor<'s>>,
pub score: f32,
pub seed: bool,
}Expand description
One lookup answer entry. Borrowed from the snapshot; cheap to produce.
Fields§
§key: UrlKeyDurable key.
url: &'s strCanonical URL.
title: Option<&'s str>Title, if known.
snippet: Option<&'s str>Distilled snippet, if known.
anchor: Option<Anchor<'s>>Best matching segment anchor, if any.
score: f32Fused relevance score (higher is better).
seed: boolTrue when this hit seeded the traversal (direct lexical match).
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Hit<'s>
impl<'s> RefUnwindSafe for Hit<'s>
impl<'s> Send for Hit<'s>
impl<'s> Sync for Hit<'s>
impl<'s> Unpin for Hit<'s>
impl<'s> UnsafeUnpin for Hit<'s>
impl<'s> UnwindSafe for Hit<'s>
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