pub struct SimilarCodeGeneration {
pub extraction_semantics_version: u32,
pub embedding_semantics_version: u32,
pub provider: SimilarCodeProviderProvenance,
pub model: SimilarCodeModelProvenance,
pub parameters: SimilarCodeGenerationParameters,
pub scope: SimilarCodeScopeProvenance,
pub threshold: f64,
pub min_lines: u64,
}Expand description
Complete provenance needed to reproduce candidate generation.
Fields§
§extraction_semantics_version: u32Version of extraction and normalization semantics used for both IDs.
embedding_semantics_version: u32Version of the calculation that produces model embeddings.
provider: SimilarCodeProviderProvenanceLocal provider provenance.
model: SimilarCodeModelProvenanceImmutable model provenance.
parameters: SimilarCodeGenerationParametersEffective generation parameters.
scope: SimilarCodeScopeProvenanceMaterialized endpoint scope needed to reproduce scoped discovery.
threshold: f64Minimum cosine similarity admitted into the candidate set.
min_lines: u64Minimum source line count admitted into function extraction.
Trait Implementations§
Source§impl Clone for SimilarCodeGeneration
impl Clone for SimilarCodeGeneration
Source§impl Debug for SimilarCodeGeneration
impl Debug for SimilarCodeGeneration
Source§impl<'de> Deserialize<'de> for SimilarCodeGeneration
impl<'de> Deserialize<'de> for SimilarCodeGeneration
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 SimilarCodeGeneration
impl PartialEq for SimilarCodeGeneration
Source§impl Serialize for SimilarCodeGeneration
impl Serialize for SimilarCodeGeneration
impl StructuralPartialEq for SimilarCodeGeneration
Auto Trait Implementations§
impl Freeze for SimilarCodeGeneration
impl RefUnwindSafe for SimilarCodeGeneration
impl Send for SimilarCodeGeneration
impl Sync for SimilarCodeGeneration
impl Unpin for SimilarCodeGeneration
impl UnsafeUnpin for SimilarCodeGeneration
impl UnwindSafe for SimilarCodeGeneration
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