pub struct PackCandidate {Show 28 fields
pub candidate_id: String,
pub source_path: String,
pub source_id: String,
pub origin_kind: String,
pub origin_host: Option<String>,
pub workspace: String,
pub workspace_original: Option<String>,
pub agent: String,
pub line_start: Option<usize>,
pub line_end: Option<usize>,
pub conversation_id: Option<i64>,
pub message_index: Option<usize>,
pub content_hash: String,
pub span_hash: String,
pub created_at_ms: Option<i64>,
pub indexed_at_ms: Option<i64>,
pub match_type: String,
pub excerpt: String,
pub role: PackEvidenceRole,
pub lexical_score: Option<f64>,
pub semantic_score: Option<f64>,
pub hybrid_rank: Option<usize>,
pub matched_terms: Vec<String>,
pub matched_phrases: Vec<String>,
pub query_term_count: usize,
pub query_phrase_count: usize,
pub source_readiness: PackSourceReadiness,
pub source_explicitly_requested: bool,
}Fields§
§candidate_id: String§source_path: String§source_id: String§origin_kind: String§origin_host: Option<String>§workspace: String§workspace_original: Option<String>§agent: String§line_start: Option<usize>§line_end: Option<usize>§conversation_id: Option<i64>§message_index: Option<usize>§content_hash: String§span_hash: String§created_at_ms: Option<i64>§indexed_at_ms: Option<i64>§match_type: String§excerpt: String§role: PackEvidenceRole§lexical_score: Option<f64>§semantic_score: Option<f64>§hybrid_rank: Option<usize>§matched_terms: Vec<String>§matched_phrases: Vec<String>§query_term_count: usize§query_phrase_count: usize§source_readiness: PackSourceReadiness§source_explicitly_requested: boolImplementations§
Source§impl PackCandidate
impl PackCandidate
pub fn from_search_hit( hit: &SearchHit, query_term_count: usize, query_phrase_count: usize, ) -> Self
Trait Implementations§
Source§impl Clone for PackCandidate
impl Clone for PackCandidate
Source§fn clone(&self) -> PackCandidate
fn clone(&self) -> PackCandidate
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 moreSource§impl Debug for PackCandidate
impl Debug for PackCandidate
Source§impl<'de> Deserialize<'de> for PackCandidate
impl<'de> Deserialize<'de> for PackCandidate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PackCandidate
impl PartialEq for PackCandidate
Source§fn eq(&self, other: &PackCandidate) -> bool
fn eq(&self, other: &PackCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PackCandidate
impl Serialize for PackCandidate
impl StructuralPartialEq for PackCandidate
Auto Trait Implementations§
impl Freeze for PackCandidate
impl RefUnwindSafe for PackCandidate
impl Send for PackCandidate
impl Sync for PackCandidate
impl Unpin for PackCandidate
impl UnsafeUnpin for PackCandidate
impl UnwindSafe for PackCandidate
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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