pub struct SimilarCodeConfig {
pub threshold: f64,
pub min_lines: usize,
pub ignore: Vec<String>,
}Expand description
Project-owned tuning for the explicit fallow similar-code workflow.
Provider identity, executable discovery, model setup, credentials, and consent are intentionally absent. Project configuration cannot select code destinations or authorize model downloads.
Fields§
§threshold: f64Minimum model-specific cosine similarity retained as an unverified candidate. It is not a probability or refactor-safety verdict.
min_lines: usizeMinimum source line count for a function to enter model inference.
ignore: Vec<String>Additional project-root-relative globs excluded only from similar-code
extraction. Global ignorePatterns remain authoritative first.
Trait Implementations§
Source§impl Clone for SimilarCodeConfig
impl Clone for SimilarCodeConfig
Source§impl Debug for SimilarCodeConfig
impl Debug for SimilarCodeConfig
Source§impl Default for SimilarCodeConfig
impl Default for SimilarCodeConfig
Source§impl<'de> Deserialize<'de> for SimilarCodeConfig
impl<'de> Deserialize<'de> for SimilarCodeConfig
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 JsonSchema for SimilarCodeConfig
impl JsonSchema for SimilarCodeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SimilarCodeConfig
impl RefUnwindSafe for SimilarCodeConfig
impl Send for SimilarCodeConfig
impl Sync for SimilarCodeConfig
impl Unpin for SimilarCodeConfig
impl UnsafeUnpin for SimilarCodeConfig
impl UnwindSafe for SimilarCodeConfig
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