pub struct VerifyResult {
pub finding_id: String,
pub verdict: VerifyVerdict,
pub oracle: Oracle,
pub vuln_run: VerifyRun,
pub benign_run: VerifyRun,
pub attack_provenance: AttackProvenance,
pub replay_stable: Option<bool>,
pub error_message: Option<String>,
}Expand description
Verifier wire shape. The runner emits one VerifyResult per
finding it confirms or rejects.
Fields§
§finding_id: String§verdict: VerifyVerdict§oracle: Oracle§vuln_run: VerifyRunVuln payload run.
benign_run: VerifyRunBenign-control run. Required for differential rule v1; without
it the runner refuses to emit Confirmed.
attack_provenance: AttackProvenanceSource of the payload pair the verifier consumed.
replay_stable: Option<bool>Stamped true when an optional second run produced an identical
verdict. Stays None when the replay-stable check is disabled.
error_message: Option<String>Free-form diagnostic for Errored verdicts. Empty on a clean
Confirmed / NotConfirmed decision.
Implementations§
Source§impl VerifyResult
impl VerifyResult
Sourcepub fn from_runs(
finding_id: String,
oracle: Oracle,
vuln_run: VerifyRun,
benign_run: VerifyRun,
attack_provenance: AttackProvenance,
) -> Self
pub fn from_runs( finding_id: String, oracle: Oracle, vuln_run: VerifyRun, benign_run: VerifyRun, attack_provenance: AttackProvenance, ) -> Self
Apply differential rule v1 to a fresh pair of runs.
Sourcepub fn errored(
finding_id: String,
oracle: Oracle,
vuln_run: VerifyRun,
benign_run: VerifyRun,
attack_provenance: AttackProvenance,
message: String,
) -> Self
pub fn errored( finding_id: String, oracle: Oracle, vuln_run: VerifyRun, benign_run: VerifyRun, attack_provenance: AttackProvenance, message: String, ) -> Self
Construct an Errored verdict carrying message. Both runs are
recorded for forensics; the caller is responsible for providing
the best-effort capture they have.
Trait Implementations§
Source§impl Clone for VerifyResult
impl Clone for VerifyResult
Source§fn clone(&self) -> VerifyResult
fn clone(&self) -> VerifyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VerifyResult
impl Debug for VerifyResult
Source§impl<'de> Deserialize<'de> for VerifyResult
impl<'de> Deserialize<'de> for VerifyResult
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 VerifyResult
impl PartialEq for VerifyResult
Source§fn eq(&self, other: &VerifyResult) -> bool
fn eq(&self, other: &VerifyResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerifyResult
impl Serialize for VerifyResult
impl Eq for VerifyResult
impl StructuralPartialEq for VerifyResult
Auto Trait Implementations§
impl Freeze for VerifyResult
impl RefUnwindSafe for VerifyResult
impl Send for VerifyResult
impl Sync for VerifyResult
impl Unpin for VerifyResult
impl UnsafeUnpin for VerifyResult
impl UnwindSafe for VerifyResult
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