pub struct CodeResult {
pub exec_result: ExecResult,
pub diagnostics: Vec<RustDiagnostic>,
pub output: Option<Value>,
pub display_stdout: String,
}Expand description
Result of a successful RustExecutor::execute call.
Contains the sandbox execution result plus any compiler diagnostics (warnings) that were emitted during the check step.
Fields§
§exec_result: ExecResultThe sandbox execution result (stdout, stderr, exit_code, duration).
diagnostics: Vec<RustDiagnostic>Compiler diagnostics from the check step (warnings only — errors halt execution).
output: Option<Value>Structured JSON output extracted from the last stdout line, if any.
display_stdout: StringDisplay stdout (everything before the structured output line).
Trait Implementations§
Source§impl Clone for CodeResult
impl Clone for CodeResult
Source§fn clone(&self) -> CodeResult
fn clone(&self) -> CodeResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodeResult
impl RefUnwindSafe for CodeResult
impl Send for CodeResult
impl Sync for CodeResult
impl Unpin for CodeResult
impl UnsafeUnpin for CodeResult
impl UnwindSafe for CodeResult
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