pub struct RunOutcomeRecord { /* private fields */ }Expand description
A verifier outcome or unresolved observation projected into a run report.
Non-unknown records can only be created from an already validated
Outcome. The flattened fields make reports convenient to consume while
the embedded outcome preserves the verifier rule, case, hypothesis, stage,
and evidence provenance needed to revalidate a serialized record.
Implementations§
Source§impl RunOutcomeRecord
impl RunOutcomeRecord
Sourcepub fn unresolved(
subject: EntityId,
action_id: impl Into<String>,
rationale: impl Into<String>,
redacted_summary: impl Into<String>,
) -> Result<RunOutcomeRecord, RunReportError>
pub fn unresolved( subject: EntityId, action_id: impl Into<String>, rationale: impl Into<String>, redacted_summary: impl Into<String>, ) -> Result<RunOutcomeRecord, RunReportError>
Creates the canonical projection for an unresolved observation that did not pass through a verifier case.
Sourcepub fn from_outcome(
outcome: Outcome,
redacted_summary: impl Into<String>,
) -> Result<RunOutcomeRecord, RunReportError>
pub fn from_outcome( outcome: Outcome, redacted_summary: impl Into<String>, ) -> Result<RunOutcomeRecord, RunReportError>
Projects an existing verifier-owned outcome without weakening its case, rule, confidence, or immutable evidence requirements.
Projection remains informational because verifier success does not by
itself establish security impact or finding severity. Outcome also
does not carry the orchestration-level VerificationCase transition
permission: a knowledge-only Success is therefore not promoted into a
finding or confirmed claim here. A future impact policy may add a
narrower constructor without weakening this boundary.
Sourcepub const fn verification_outcome(&self) -> Option<&Outcome>
pub const fn verification_outcome(&self) -> Option<&Outcome>
Returns the verifier-owned outcome when this is a verification
projection. Unresolved compatibility observations return None.
Sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Returns the stable deterministic fingerprint.
Sourcepub const fn severity(&self) -> SecuritySeverity
pub const fn severity(&self) -> SecuritySeverity
Returns typed severity.
Sourcepub const fn disposition(&self) -> OutcomeStatus
pub const fn disposition(&self) -> OutcomeStatus
Returns the existing verifier disposition vocabulary.
Sourcepub const fn confidence(&self) -> Probability
pub const fn confidence(&self) -> Probability
Returns confidence in the projected record.
Sourcepub const fn evidence_ids(&self) -> &BTreeSet<EvidenceId>
pub const fn evidence_ids(&self) -> &BTreeSet<EvidenceId>
Returns correlated immutable evidence identifiers.
Sourcepub fn redacted_summary(&self) -> &str
pub fn redacted_summary(&self) -> &str
Returns the bounded, redacted evidence summary.
Trait Implementations§
Source§impl Clone for RunOutcomeRecord
impl Clone for RunOutcomeRecord
Source§fn clone(&self) -> RunOutcomeRecord
fn clone(&self) -> RunOutcomeRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunOutcomeRecord
impl Debug for RunOutcomeRecord
Source§impl<'de> Deserialize<'de> for RunOutcomeRecord
impl<'de> Deserialize<'de> for RunOutcomeRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunOutcomeRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunOutcomeRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for RunOutcomeRecord
Source§impl PartialEq for RunOutcomeRecord
impl PartialEq for RunOutcomeRecord
Source§impl Serialize for RunOutcomeRecord
impl Serialize for RunOutcomeRecord
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,
impl StructuralPartialEq for RunOutcomeRecord
Source§impl TryFrom<RunOutcomeRecordWire> for RunOutcomeRecord
impl TryFrom<RunOutcomeRecordWire> for RunOutcomeRecord
Source§type Error = RunReportError
type Error = RunReportError
Source§fn try_from(
value: RunOutcomeRecordWire,
) -> Result<RunOutcomeRecord, <RunOutcomeRecord as TryFrom<RunOutcomeRecordWire>>::Error>
fn try_from( value: RunOutcomeRecordWire, ) -> Result<RunOutcomeRecord, <RunOutcomeRecord as TryFrom<RunOutcomeRecordWire>>::Error>
Auto Trait Implementations§
impl Freeze for RunOutcomeRecord
impl RefUnwindSafe for RunOutcomeRecord
impl Send for RunOutcomeRecord
impl Sync for RunOutcomeRecord
impl Unpin for RunOutcomeRecord
impl UnsafeUnpin for RunOutcomeRecord
impl UnwindSafe for RunOutcomeRecord
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.