pub struct AIAnalyzer { /* private fields */ }Expand description
AI analyzer for automated violation analysis
Implementations§
Source§impl AIAnalyzer
impl AIAnalyzer
Sourcepub fn analyze_violations(
&self,
violations: Vec<Violation>,
) -> Result<AIAnalysisReport>
pub fn analyze_violations( &self, violations: Vec<Violation>, ) -> Result<AIAnalysisReport>
Analyze violations and generate report
§Errors
Returns an error if reading source files or analyzing project patterns fails.
Sourcepub async fn analyze_violations_async(
&self,
violations: Vec<Violation>,
) -> Result<AIAnalysisReport>
pub async fn analyze_violations_async( &self, violations: Vec<Violation>, ) -> Result<AIAnalysisReport>
Async version of analyze_violations
§Errors
Returns an error if reading source files or analyzing project patterns fails.
Sourcepub fn save_analysis(&self, report: &AIAnalysisReport) -> Result<()>
pub fn save_analysis(&self, report: &AIAnalysisReport) -> Result<()>
Save analysis report to disk
§Errors
Returns an error if creating the analysis directory, serializing the report, or writing files fails.
Sourcepub fn save_orchestrator_instructions(
&self,
report: &AIAnalysisReport,
) -> Result<()>
pub fn save_orchestrator_instructions( &self, report: &AIAnalysisReport, ) -> Result<()>
Save orchestrator instructions to file, including locked settings section
§Errors
Returns an error if writing the instructions file fails.
Auto Trait Implementations§
impl Freeze for AIAnalyzer
impl RefUnwindSafe for AIAnalyzer
impl Send for AIAnalyzer
impl Sync for AIAnalyzer
impl Unpin for AIAnalyzer
impl UnsafeUnpin for AIAnalyzer
impl UnwindSafe for AIAnalyzer
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> 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