pub struct SuggestRequest {
pub pattern_filter: Option<String>,
pub high_impact: bool,
pub quick: bool,
pub scan: bool,
pub precheck: bool,
pub exclude_rules: Vec<String>,
pub enhanced: bool,
pub scope_filter: Vec<String>,
}Expand description
Request for code improvement suggestions.
Fields§
§pattern_filter: Option<String>Optional pattern to filter suggestions.
high_impact: boolOnly show high-impact suggestions.
quick: boolQuick mode (fewer but faster suggestions).
scan: boolRun scan before returning suggestions. When true, executes suggest_scan() to detect new suggestions.
precheck: boolRun pre-check on each suggestion during scan. When true, uses suggest_scan_with_precheck() which validates each suggestion before storing, ensuring Apply will succeed.
exclude_rules: Vec<String>Rule IDs to exclude (e.g., [“RL021”, “RL020”]).
enhanced: boolReturn enhanced suggestions with design choices and verification status.
scope_filter: Vec<String>Scope filter: only include suggestions from these scopes (lib, bin, test). Empty means include all scopes.
Trait Implementations§
Source§impl Clone for SuggestRequest
impl Clone for SuggestRequest
Source§fn clone(&self) -> SuggestRequest
fn clone(&self) -> SuggestRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SuggestRequest
impl Debug for SuggestRequest
Source§impl Default for SuggestRequest
impl Default for SuggestRequest
Source§fn default() -> SuggestRequest
fn default() -> SuggestRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuggestRequest
impl<'de> Deserialize<'de> for SuggestRequest
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
Auto Trait Implementations§
impl Freeze for SuggestRequest
impl RefUnwindSafe for SuggestRequest
impl Send for SuggestRequest
impl Sync for SuggestRequest
impl Unpin for SuggestRequest
impl UnsafeUnpin for SuggestRequest
impl UnwindSafe for SuggestRequest
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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