pub struct LlmFixRequest {
pub rule_id: String,
pub file_uri: String,
pub file_path: PathBuf,
pub line: u32,
pub message: String,
pub code_snip: Option<String>,
pub source: Option<String>,
pub labels: Vec<String>,
}Expand description
A request to send to the LLM for fix generation.
Fields§
§rule_id: String§file_uri: String§file_path: PathBuf§line: u32§message: String§code_snip: Option<String>§source: Option<String>The full source content of the file (for context).
labels: Vec<String>Labels from the violation (e.g., “family=Modal”, “change-type=prop-to-child”). Used to coalesce related rules into coherent migration groups.
Trait Implementations§
Source§impl Clone for LlmFixRequest
impl Clone for LlmFixRequest
Source§impl Debug for LlmFixRequest
impl Debug for LlmFixRequest
Source§impl<'de> Deserialize<'de> for LlmFixRequest
impl<'de> Deserialize<'de> for LlmFixRequest
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 LlmFixRequest
impl RefUnwindSafe for LlmFixRequest
impl Send for LlmFixRequest
impl Sync for LlmFixRequest
impl Unpin for LlmFixRequest
impl UnsafeUnpin for LlmFixRequest
impl UnwindSafe for LlmFixRequest
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