pub struct HitAttribution {
pub matched_paths: Vec<String>,
}Expand description
Per-hit attribution data produced by the (Phase 5) match attributor.
The struct is exported in Phase 1 to lock in the shape of
SearchHit::attribution, but it is never populated by the current
execution path. All hits return attribution: None until Phase 5 wires
the attributor.
Fields§
§matched_paths: Vec<String>Property paths (or "text_content" for chunk hits) that contributed to
the match. Empty in Phase 1.
Trait Implementations§
Source§impl Clone for HitAttribution
impl Clone for HitAttribution
Source§fn clone(&self) -> HitAttribution
fn clone(&self) -> HitAttribution
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 moreSource§impl Debug for HitAttribution
impl Debug for HitAttribution
Source§impl Default for HitAttribution
impl Default for HitAttribution
Source§fn default() -> HitAttribution
fn default() -> HitAttribution
Returns the “default value” for a type. Read more
Source§impl PartialEq for HitAttribution
impl PartialEq for HitAttribution
impl Eq for HitAttribution
impl StructuralPartialEq for HitAttribution
Auto Trait Implementations§
impl Freeze for HitAttribution
impl RefUnwindSafe for HitAttribution
impl Send for HitAttribution
impl Sync for HitAttribution
impl Unpin for HitAttribution
impl UnsafeUnpin for HitAttribution
impl UnwindSafe for HitAttribution
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