pub struct SimilarCodeCandidate {
pub candidate_id: String,
pub review_key: String,
pub left: SimilarCodeLocation,
pub right: SimilarCodeLocation,
pub similarity: f64,
pub similarity_band: SimilarCodeSimilarityBand,
pub verification_status: SimilarCodeVerificationStatus,
pub enrichment: SimilarCodeEnrichmentAvailability,
pub actions: Vec<SimilarCodeAction>,
}Expand description
One unverified semantic similar-code candidate.
Fields§
§candidate_id: StringSnapshot-stable opaque candidate identity.
review_key: StringContent-stable key used for safe line-movement rebinding.
left: SimilarCodeLocationFirst location in deterministic pair order.
right: SimilarCodeLocationSecond location in deterministic pair order.
similarity: f64Cosine similarity reported by the pinned provider and model.
similarity_band: SimilarCodeSimilarityBandStable score band for consumers that do not need the raw score.
verification_status: SimilarCodeVerificationStatusRaw candidates are always explicitly unverified.
enrichment: SimilarCodeEnrichmentAvailabilityAvailability of optional deterministic and runtime context.
actions: Vec<SimilarCodeAction>Read-only inspect and review affordances.
Trait Implementations§
Source§impl Clone for SimilarCodeCandidate
impl Clone for SimilarCodeCandidate
Source§impl Debug for SimilarCodeCandidate
impl Debug for SimilarCodeCandidate
Source§impl<'de> Deserialize<'de> for SimilarCodeCandidate
impl<'de> Deserialize<'de> for SimilarCodeCandidate
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 SimilarCodeCandidate
impl PartialEq for SimilarCodeCandidate
Source§impl Serialize for SimilarCodeCandidate
impl Serialize for SimilarCodeCandidate
impl StructuralPartialEq for SimilarCodeCandidate
Auto Trait Implementations§
impl Freeze for SimilarCodeCandidate
impl RefUnwindSafe for SimilarCodeCandidate
impl Send for SimilarCodeCandidate
impl Sync for SimilarCodeCandidate
impl Unpin for SimilarCodeCandidate
impl UnsafeUnpin for SimilarCodeCandidate
impl UnwindSafe for SimilarCodeCandidate
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