pub struct ContractDiffConfig {
pub enabled: bool,
pub llm_provider: String,
pub llm_model: String,
pub api_key: Option<String>,
pub confidence_threshold: f64,
pub generate_corrections: bool,
pub use_ai_recommendations: bool,
pub max_recommendations: usize,
pub include_examples: bool,
pub semantic_analysis_enabled: bool,
pub semantic_confidence_threshold: f64,
pub soft_breaking_threshold: f64,
}Expand description
Configuration for contract diff analysis
Fields§
§enabled: boolWhether contract diff is enabled
llm_provider: StringLLM provider to use (openai, anthropic, ollama, openai-compatible)
llm_model: StringLLM model to use
api_key: Option<String>API key for LLM provider
confidence_threshold: f64Confidence threshold - only show suggestions above this (0.0-1.0)
generate_corrections: boolWhether to generate correction proposals
use_ai_recommendations: boolWhether to use AI for recommendations
max_recommendations: usizeMaximum number of recommendations to generate
include_examples: boolWhether to include examples in recommendations
semantic_analysis_enabled: boolWhether semantic analysis is enabled (Layer 2)
semantic_confidence_threshold: f64Semantic confidence threshold (default 0.65) Only semantic drift above this threshold triggers notifications
soft_breaking_threshold: f64Soft-breaking threshold (default 0.65) Semantic changes above this score are considered soft-breaking
Trait Implementations§
Source§impl Clone for ContractDiffConfig
impl Clone for ContractDiffConfig
Source§fn clone(&self) -> ContractDiffConfig
fn clone(&self) -> ContractDiffConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ContractDiffConfig
impl Debug for ContractDiffConfig
Source§impl Default for ContractDiffConfig
impl Default for ContractDiffConfig
Source§fn default() -> ContractDiffConfig
fn default() -> ContractDiffConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractDiffConfig
impl<'de> Deserialize<'de> for ContractDiffConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractDiffConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractDiffConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContractDiffConfig
impl Serialize for ContractDiffConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ContractDiffConfig
impl RefUnwindSafe for ContractDiffConfig
impl Send for ContractDiffConfig
impl Sync for ContractDiffConfig
impl Unpin for ContractDiffConfig
impl UnsafeUnpin for ContractDiffConfig
impl UnwindSafe for ContractDiffConfig
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