pub struct MineTask {Show 15 fields
pub task_id: String,
pub project: String,
pub file: LeanFile,
pub declaration: Option<Declaration>,
pub kind: MineKind,
pub line: u32,
pub column: u32,
pub imports: Vec<String>,
pub source_before: String,
pub target_span: TargetSpan,
pub source_after: String,
pub diagnostic: Option<Diagnostic>,
pub goal_state: Option<GoalState>,
pub allowed_edit: AllowedEdit,
pub instructions: String,
}Expand description
One mined, replayable proof task.
Fields§
§task_id: StringStable identifier, shaped Module.decl:line (or Module:line when no
declaration name is detected), with a :column suffix on collision.
project: StringProject the task was mined from.
file: LeanFileSource file holding the span.
declaration: Option<Declaration>Enclosing declaration, when one is detectable.
kind: MineKindWhat this task targets.
line: u32One-based line of the placeholder token or error site.
column: u32Zero-based column of the placeholder token or error site.
imports: Vec<String>Import lines in scope, in source order.
source_before: StringFile text before the target span.
target_span: TargetSpanThe exact span to replace.
source_after: StringFile text after the target span.
diagnostic: Option<Diagnostic>Backing diagnostic for error tasks; absent for placeholder tasks.
goal_state: Option<GoalState>Goal state when the backing diagnostic exposed one.
allowed_edit: AllowedEditThe single span the replay step may edit.
instructions: StringStanding instruction for the agent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MineTask
impl<'de> Deserialize<'de> for MineTask
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
impl Eq for MineTask
impl StructuralPartialEq for MineTask
Auto Trait Implementations§
impl Freeze for MineTask
impl RefUnwindSafe for MineTask
impl Send for MineTask
impl Sync for MineTask
impl Unpin for MineTask
impl UnsafeUnpin for MineTask
impl UnwindSafe for MineTask
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