pub struct VerifierResult {
pub status: String,
pub command: String,
pub duration_ms: u64,
pub stdout: String,
pub stderr: String,
pub exit_code: Option<i32>,
pub error_class: Option<String>,
pub suggested_next_action: Option<String>,
}Expand description
The outcome of running a single verification command.
Fields§
§status: StringOverall status: “pass”, “fail”, “error”, or “skipped”.
command: StringThe command that was executed.
duration_ms: u64Wall-clock duration in milliseconds.
stdout: StringCaptured stdout (lossy UTF-8, truncated to 64 KiB).
stderr: StringCaptured stderr (lossy UTF-8, truncated to 64 KiB).
exit_code: Option<i32>Exit code from the process, if available.
error_class: Option<String>Machine-readable error classification: “compile_error”, “test_failure”, “type_error”, “lint_violation”, “timeout”, “io_error”, etc.
suggested_next_action: Option<String>Human-readable suggestion for what to do next.
Implementations§
Source§impl VerifierResult
impl VerifierResult
Sourcepub fn fail(
command: impl Into<String>,
duration_ms: u64,
stdout: String,
stderr: String,
exit_code: i32,
error_class: Option<String>,
suggested_next_action: Option<String>,
) -> Self
pub fn fail( command: impl Into<String>, duration_ms: u64, stdout: String, stderr: String, exit_code: i32, error_class: Option<String>, suggested_next_action: Option<String>, ) -> Self
Creates a “fail” result from a non-zero exit code.
Sourcepub fn error(
command: impl Into<String>,
error_class: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn error( command: impl Into<String>, error_class: impl Into<String>, message: impl Into<String>, ) -> Self
Creates an “error” result for a system-level failure (could not start command, etc.).
Trait Implementations§
Source§impl Clone for VerifierResult
impl Clone for VerifierResult
Source§impl Debug for VerifierResult
impl Debug for VerifierResult
Source§impl<'de> Deserialize<'de> for VerifierResult
impl<'de> Deserialize<'de> for VerifierResult
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
Source§impl PartialEq for VerifierResult
impl PartialEq for VerifierResult
Source§impl Serialize for VerifierResult
impl Serialize for VerifierResult
impl StructuralPartialEq for VerifierResult
Auto Trait Implementations§
impl Freeze for VerifierResult
impl RefUnwindSafe for VerifierResult
impl Send for VerifierResult
impl Sync for VerifierResult
impl Unpin for VerifierResult
impl UnsafeUnpin for VerifierResult
impl UnwindSafe for VerifierResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more