pub struct SearchOutcome {
pub hits: Vec<Hit>,
pub semantic_used: bool,
pub degraded: Option<String>,
}Expand description
Outcome of search: the ranked hits plus retrieval diagnostics for the
binary’s stderr (never part of the stdout data contract).
Fields§
§hits: Vec<Hit>§semantic_used: boolTrue when semantic retrieval actually contributed (embedder available and vectors present).
degraded: Option<String>Set when semantic was requested but unavailable — the reason, for a
stderr notice. None when not requested or fully satisfied.
Trait Implementations§
Source§impl Clone for SearchOutcome
impl Clone for SearchOutcome
Source§fn clone(&self) -> SearchOutcome
fn clone(&self) -> SearchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchOutcome
impl RefUnwindSafe for SearchOutcome
impl Send for SearchOutcome
impl Sync for SearchOutcome
impl Unpin for SearchOutcome
impl UnsafeUnpin for SearchOutcome
impl UnwindSafe for SearchOutcome
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