pub struct SimilarCodeCandidate {
pub candidate_id: String,
pub review_key: String,
pub left: FunctionLocation,
pub right: FunctionLocation,
pub similarity: f64,
pub verification_status: SimilarCodeVerificationStatus,
}Expand description
One advisory similar-code pair.
Fields§
§candidate_id: StringSnapshot identity over content, occurrences, and extraction semantics.
review_key: StringContent-only identity stable when both functions move without changing.
left: FunctionLocationCanonically ordered first source location.
right: FunctionLocationCanonically ordered second source location.
similarity: f64Cosine similarity in the closed range from -1 to 1.
verification_status: SimilarCodeVerificationStatusExplicit adjudication state. Prototype results always start unverified.
Trait Implementations§
Source§impl Clone for SimilarCodeCandidate
impl Clone for SimilarCodeCandidate
Source§impl Debug for SimilarCodeCandidate
impl Debug for SimilarCodeCandidate
Source§impl PartialEq for SimilarCodeCandidate
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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