pub struct GeneratedTool {
pub source: String,
pub function_name: String,
pub tests_included: bool,
pub test_count: usize,
pub static_analysis: StaticAnalysisReport,
}Expand description
The result of one code generation pass.
Contains the raw source, extracted metadata, and the static analysis report. Does not contain compiled artefacts — those live in Phase 4.
Fields§
§source: StringRust source code as returned by the model (extracted from the code block).
function_name: StringThe first public/private fn name found in the source.
tests_included: boolTrue if the source contains at least two #[test] functions.
test_count: usizeNumber of #[test] annotations found.
static_analysis: StaticAnalysisReportStatic analysis results.
Trait Implementations§
Source§impl Clone for GeneratedTool
impl Clone for GeneratedTool
Source§fn clone(&self) -> GeneratedTool
fn clone(&self) -> GeneratedTool
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 GeneratedTool
impl Debug for GeneratedTool
Source§impl<'de> Deserialize<'de> for GeneratedTool
impl<'de> Deserialize<'de> for GeneratedTool
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 GeneratedTool
impl RefUnwindSafe for GeneratedTool
impl Send for GeneratedTool
impl Sync for GeneratedTool
impl Unpin for GeneratedTool
impl UnsafeUnpin for GeneratedTool
impl UnwindSafe for GeneratedTool
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