pub struct SemanticAnalyzer { /* private fields */ }Expand description
Semantic analyzer for detecting meaning changes
Implementations§
Source§impl SemanticAnalyzer
impl SemanticAnalyzer
Sourcepub fn new(config: ContractDiffConfig) -> Result<Self>
pub fn new(config: ContractDiffConfig) -> Result<Self>
Create a new semantic analyzer
Sourcepub async fn analyze_semantic_drift(
&self,
before_spec: &OpenApiSpec,
after_spec: &OpenApiSpec,
endpoint_path: &str,
method: &str,
) -> Result<Option<SemanticDriftResult>>
pub async fn analyze_semantic_drift( &self, before_spec: &OpenApiSpec, after_spec: &OpenApiSpec, endpoint_path: &str, method: &str, ) -> Result<Option<SemanticDriftResult>>
Analyze semantic drift between two contract states
This is Layer 2 analysis that runs after structural diff to detect meaning changes that might not be structurally breaking but are semantically significant.
Auto Trait Implementations§
impl Freeze for SemanticAnalyzer
impl !RefUnwindSafe for SemanticAnalyzer
impl Send for SemanticAnalyzer
impl Sync for SemanticAnalyzer
impl Unpin for SemanticAnalyzer
impl UnsafeUnpin for SemanticAnalyzer
impl !UnwindSafe for SemanticAnalyzer
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