pub struct TestRun {
pub id: TestRunId,
pub solution: SolutionId,
pub case: Option<CaseId>,
pub job: Option<JobId>,
pub status: TestRunStatus,
pub verdict: Option<LocalVerdict>,
pub exit_code: Option<i32>,
pub duration: Option<Duration>,
pub log_path: Option<PathBuf>,
pub started_at: Option<SystemTime>,
pub finished_at: Option<SystemTime>,
}Expand description
A single local execution of a solution against a case.
Fields§
§id: TestRunIdRun identifier.
solution: SolutionIdSolution that was executed.
case: Option<CaseId>Case under test, or None for ad-hoc input.
job: Option<JobId>Job that executes the run, once dispatched (C-06).
status: TestRunStatusCurrent lifecycle state.
verdict: Option<LocalVerdict>Local verdict once finished. Never an official judge result.
exit_code: Option<i32>Process exit code, when the run produced one.
duration: Option<Duration>Wall-clock duration of the run.
log_path: Option<PathBuf>Path to captured stdout/stderr log, when retained.
started_at: Option<SystemTime>When execution started.
finished_at: Option<SystemTime>When execution finished.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestRun
impl<'de> Deserialize<'de> for TestRun
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 StructuralPartialEq for TestRun
Auto Trait Implementations§
impl Forget for TestRun
impl Freeze for TestRun
impl Move for TestRun
impl RefUnwindSafe for TestRun
impl Send for TestRunwhere
RawVecInner: Send,
impl Sync for TestRunwhere
RawVecInner: Sync,
impl Unpin for TestRun
impl UnsafeUnpin for TestRun
impl UnwindSafe for TestRunwhere
RawVecInner: UnwindSafe,
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