pub struct VerificationPath {
pub test_id: String,
pub source_language: Option<Language>,
pub target_language: Option<Language>,
pub verdict: Option<Verdict>,
pub duration_ns: u64,
pub source_result: Option<ExecutionSummary>,
pub target_result: Option<ExecutionSummary>,
pub metadata: HashMap<String, Value>,
/* private fields */
}Expand description
Decision path for a verification execution.
Captures all relevant information for auditing a test verification decision.
Fields§
§test_id: StringTest case identifier
source_language: Option<Language>Source language
target_language: Option<Language>Target language
verdict: Option<Verdict>Verification verdict
duration_ns: u64Execution duration in nanoseconds
source_result: Option<ExecutionSummary>Source execution result summary
target_result: Option<ExecutionSummary>Target execution result summary
metadata: HashMap<String, Value>Additional metadata
Implementations§
Source§impl VerificationPath
impl VerificationPath
Sourcepub fn with_verdict(self, verdict: Verdict) -> Self
pub fn with_verdict(self, verdict: Verdict) -> Self
Set the verification verdict.
Sourcepub fn with_duration(self, duration: Duration) -> Self
pub fn with_duration(self, duration: Duration) -> Self
Set execution duration.
Sourcepub fn with_languages(self, source: Language, target: Language) -> Self
pub fn with_languages(self, source: Language, target: Language) -> Self
Set source and target languages.
Sourcepub fn with_source_result(self, result: &ExecutionResult) -> Self
pub fn with_source_result(self, result: &ExecutionResult) -> Self
Set source execution result.
Sourcepub fn with_target_result(self, result: &ExecutionResult) -> Self
pub fn with_target_result(self, result: &ExecutionResult) -> Self
Set target execution result.
Sourcepub fn with_metadata(self, key: impl Into<String>, value: Value) -> Self
pub fn with_metadata(self, key: impl Into<String>, value: Value) -> Self
Add metadata entry.
Sourcepub fn with_contributions(self, contributions: Vec<f32>) -> Self
pub fn with_contributions(self, contributions: Vec<f32>) -> Self
Set feature contributions (for ML analysis).
Sourcepub fn feature_contributions(&self) -> &[f32]
pub fn feature_contributions(&self) -> &[f32]
Get feature contributions.
Sourcepub fn confidence(&self) -> f32
pub fn confidence(&self) -> f32
Get confidence score.
Trait Implementations§
Source§impl Clone for VerificationPath
impl Clone for VerificationPath
Source§fn clone(&self) -> VerificationPath
fn clone(&self) -> VerificationPath
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 moreSource§impl Debug for VerificationPath
impl Debug for VerificationPath
Source§impl<'de> Deserialize<'de> for VerificationPath
impl<'de> Deserialize<'de> for VerificationPath
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 From<&VerificationResult> for VerificationPath
impl From<&VerificationResult> for VerificationPath
Source§fn from(result: &VerificationResult) -> Self
fn from(result: &VerificationResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VerificationPath
impl RefUnwindSafe for VerificationPath
impl Send for VerificationPath
impl Sync for VerificationPath
impl Unpin for VerificationPath
impl UnsafeUnpin for VerificationPath
impl UnwindSafe for VerificationPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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