pub struct VerificationResult {
pub syntax_ok: bool,
pub build_ok: bool,
pub tests_ok: bool,
pub lint_ok: bool,
pub diagnostics_count: usize,
pub tests_passed: usize,
pub tests_failed: usize,
pub summary: String,
pub raw_output: Option<String>,
pub degraded: bool,
pub degraded_reason: Option<String>,
pub stage_outcomes: Vec<StageOutcome>,
}Expand description
PSP-5: Structured verification result from a plugin-driven verifier
Holds the outcome of running syntax checks, build, tests, and lint through the active language plugin’s toolchain.
Fields§
§syntax_ok: boolWhether the syntax/type check passed
build_ok: boolWhether the build succeeded
tests_ok: boolWhether tests passed
lint_ok: boolWhether lint passed (only in Strict mode)
diagnostics_count: usizeNumber of diagnostics from LSP / compiler
tests_passed: usizeNumber of tests passed
tests_failed: usizeNumber of tests failed
summary: StringSummary output from verification tools
raw_output: Option<String>Raw tool output (for correction prompts)
degraded: boolWhether verification ran in degraded mode (missing tools)
degraded_reason: Option<String>Reason for degraded mode
stage_outcomes: Vec<StageOutcome>Per-stage outcomes with sensor status
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all verification stages passed
Sourcepub fn degraded(reason: impl Into<String>) -> VerificationResult
pub fn degraded(reason: impl Into<String>) -> VerificationResult
Create a degraded result when tools are unavailable
Sourcepub fn has_degraded_stages(&self) -> bool
pub fn has_degraded_stages(&self) -> bool
Check whether any stage ran with a fallback or unavailable sensor.
When true the caller should NOT treat a passing result as a genuine stability proof — the energy surface was only partially observable.
Sourcepub fn degraded_stage_reasons(&self) -> Vec<String>
pub fn degraded_stage_reasons(&self) -> Vec<String>
Collect human-readable descriptions of all degraded stages.
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationResult
impl Debug for VerificationResult
Source§impl Default for VerificationResult
impl Default for VerificationResult
Source§fn default() -> VerificationResult
fn default() -> VerificationResult
Source§impl<'de> Deserialize<'de> for VerificationResult
impl<'de> Deserialize<'de> for VerificationResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerificationResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerificationResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for VerificationResult
impl Serialize for VerificationResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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