pub struct GenericFixContext;Expand description
Generic fallback context with no framework-specific guidance.
Used when no registered FixContext matches the ruleset name.
Provides reasonable defaults that work for any Konveyor analysis output.
Trait Implementations§
Source§impl FixContext for GenericFixContext
impl FixContext for GenericFixContext
Source§fn ruleset_name(&self) -> &str
fn ruleset_name(&self) -> &str
Unique name that matches the
RuleSet.name field from Konveyor
analysis output. Used for registry lookup.Source§fn migration_description(&self) -> &str
fn migration_description(&self) -> &str
Human-readable description of the migration (e.g., “PatternFly v5 to v6”).
Used in LLM system prompts and prompt preambles.
Source§fn llm_constraints(&self) -> &[String]
fn llm_constraints(&self) -> &[String]
Framework-specific constraints to include in LLM prompts.
Each string is a single constraint line (will be prefixed with “- “).
Source§fn revert_warnings(&self) -> Option<&str>
fn revert_warnings(&self) -> Option<&str>
Warning text about revert pitfalls for batch mode context sections.
Shown when a batch prompt includes previously-applied fixes to warn
the LLM about framework-specific patterns it should not undo. Read more
Source§fn fix_priority(&self, _rule_id: &str) -> u8
fn fix_priority(&self, _rule_id: &str) -> u8
Determine the processing priority of a fix request within a batch.
Lower number = processed first. This ensures structural migration
rules come before informational/review-only rules. Read more
Source§fn change_type_examples(&self) -> &str
fn change_type_examples(&self) -> &str
Examples of change types for LLM prompt context. Read more
Source§fn verification_prompt(&self) -> Option<&str>
fn verification_prompt(&self) -> Option<&str>
Optional verification instructions appended to the LLM batch prompt. Read more
Source§fn llm_system_prompt(&self) -> String
fn llm_system_prompt(&self) -> String
System prompt for the OpenAI-compatible LLM client. Read more
Auto Trait Implementations§
impl Freeze for GenericFixContext
impl RefUnwindSafe for GenericFixContext
impl Send for GenericFixContext
impl Sync for GenericFixContext
impl Unpin for GenericFixContext
impl UnsafeUnpin for GenericFixContext
impl UnwindSafe for GenericFixContext
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