pub struct AiFixConfig {
pub provider: AiProviderKind,
pub model: Option<String>,
pub max_suggestions: usize,
pub accept_all: bool,
pub verbose: bool,
pub parallel_jobs: usize,
}Expand description
Configuration for AI fix operations
Fields§
§provider: AiProviderKindAI provider kind (claude, openai, local, mock)
model: Option<String>Custom model name (optional)
max_suggestions: usizeMaximum suggestions per issue
accept_all: boolAuto-apply first suggestion without confirmation
verbose: boolShow verbose output
parallel_jobs: usizeNumber of parallel jobs (0 = sequential, >0 = parallel)
Implementations§
Source§impl AiFixConfig
impl AiFixConfig
Sourcepub fn with_provider(provider: &str) -> Self
pub fn with_provider(provider: &str) -> Self
Create config from environment with specified provider
Sourcepub fn with_model(self, model: Option<String>) -> Self
pub fn with_model(self, model: Option<String>) -> Self
Set the model
Sourcepub fn with_accept_all(self, accept_all: bool) -> Self
pub fn with_accept_all(self, accept_all: bool) -> Self
Set auto-apply mode
Sourcepub fn with_verbose(self, verbose: bool) -> Self
pub fn with_verbose(self, verbose: bool) -> Self
Set verbose mode
Sourcepub fn with_parallel(self, jobs: usize) -> Self
pub fn with_parallel(self, jobs: usize) -> Self
Set parallel jobs (0 = sequential, >0 = parallel with N threads)
Trait Implementations§
Source§impl Clone for AiFixConfig
impl Clone for AiFixConfig
Source§fn clone(&self) -> AiFixConfig
fn clone(&self) -> AiFixConfig
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 AiFixConfig
impl Debug for AiFixConfig
Auto Trait Implementations§
impl Freeze for AiFixConfig
impl RefUnwindSafe for AiFixConfig
impl Send for AiFixConfig
impl Sync for AiFixConfig
impl Unpin for AiFixConfig
impl UnsafeUnpin for AiFixConfig
impl UnwindSafe for AiFixConfig
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