pub struct CodeRetrievalHit {Show 23 fields
pub repository_id: String,
pub scope_id: String,
pub resolved_commit_sha: String,
pub tree_hash: String,
pub path: String,
pub language_id: String,
pub byte_range: RepositoryCodeRange,
pub line_range: RepositoryCodeRange,
pub symbol_snapshot_id: Option<String>,
pub canonical_symbol_id: Option<String>,
pub file_id: Option<String>,
pub retrieval_layers: Vec<CodeRetrievalLayer>,
pub index_versions: Vec<String>,
pub stale: bool,
pub staleness_hint: Option<StalenessHint>,
pub degraded_reason: Option<String>,
pub edge_kind: Option<String>,
pub edge_resolution_state: Option<String>,
pub edge_target_hint: Option<String>,
pub edge_confidence_basis_points: Option<u16>,
pub edge_confidence_tier: Option<String>,
pub score: f64,
pub excerpt: String,
}Expand description
Code retrieval hit with source location, layers, and freshness metadata.
Fields§
§repository_id: String§scope_id: String§resolved_commit_sha: String§tree_hash: String§path: String§language_id: String§byte_range: RepositoryCodeRange§line_range: RepositoryCodeRange§symbol_snapshot_id: Option<String>§canonical_symbol_id: Option<String>§file_id: Option<String>§retrieval_layers: Vec<CodeRetrievalLayer>§index_versions: Vec<String>§stale: bool§staleness_hint: Option<StalenessHint>§degraded_reason: Option<String>§edge_kind: Option<String>§edge_resolution_state: Option<String>§edge_target_hint: Option<String>§edge_confidence_basis_points: Option<u16>§edge_confidence_tier: Option<String>§score: f64§excerpt: StringTrait Implementations§
Source§impl Clone for CodeRetrievalHit
impl Clone for CodeRetrievalHit
Source§fn clone(&self) -> CodeRetrievalHit
fn clone(&self) -> CodeRetrievalHit
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 CodeRetrievalHit
impl Debug for CodeRetrievalHit
Source§impl<'de> Deserialize<'de> for CodeRetrievalHit
impl<'de> Deserialize<'de> for CodeRetrievalHit
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 CodeRetrievalHit
impl PartialEq for CodeRetrievalHit
Source§fn eq(&self, other: &CodeRetrievalHit) -> bool
fn eq(&self, other: &CodeRetrievalHit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeRetrievalHit
impl Serialize for CodeRetrievalHit
impl StructuralPartialEq for CodeRetrievalHit
Auto Trait Implementations§
impl Freeze for CodeRetrievalHit
impl RefUnwindSafe for CodeRetrievalHit
impl Send for CodeRetrievalHit
impl Sync for CodeRetrievalHit
impl Unpin for CodeRetrievalHit
impl UnsafeUnpin for CodeRetrievalHit
impl UnwindSafe for CodeRetrievalHit
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