Skip to main content

Finding

Struct Finding 

Source
pub struct Finding {
    pub priority: Priority,
    pub confidence: Confidence,
    pub rule_id: String,
    pub interpretation: String,
    pub provenance: Provenance,
    pub user: Option<String>,
    pub profile: Option<String>,
    pub browser: Option<BrowserFamily>,
    pub evidence: String,
    pub next: Option<String>,
}
Expand description

A court-safe forensic finding (RFC 0001 D4/D5/D9).

Priority, Confidence and Interpretation are three structurally separate axes; provenance (Provenance) and origin (user/profile/browser) stamp every finding with where it came from. Render with Finding::render.

Fields§

§priority: Priority

Triage attention cue — look here first, not a verdict.

§confidence: Confidence

Confidence in the interpretation (paired with rule_id).

§rule_id: String

Identifier of the rule that produced this finding.

§interpretation: String

The hedged “consistent with …” statement.

§provenance: Provenance

The four-axis provenance record (D4).

§user: Option<String>

Originating user (SID or name), when known (D9).

§profile: Option<String>

Originating browser profile (e.g. Chrome/Default), when known (D9).

§browser: Option<BrowserFamily>

Originating browser family, when known (D9).

§evidence: String

The concrete datum this finding rests on (e.g. Chrome History urls rowid gap 128 → 944).

§next: Option<String>

A drill-down command pointer for the examiner’s next step.

Implementations§

Source§

impl Finding

Source

pub fn new( priority: Priority, confidence: Confidence, rule_id: impl Into<String>, interpretation: impl Into<String>, provenance: Provenance, evidence: impl Into<String>, ) -> Self

Build a finding from its three separate axes, a full provenance record, and the concrete evidence datum.

Priority and Confidence are distinct types, so the three axes cannot be conflated at a call site. Origin (user/profile/browser) and next are attached with the with_* builder methods.

Source

pub fn with_user(self, user: impl Into<String>) -> Self

Stamp the originating user (SID or name) (D9).

Source

pub fn with_profile(self, profile: impl Into<String>) -> Self

Stamp the originating browser profile (D9).

Source

pub fn with_browser(self, browser: BrowserFamily) -> Self

Stamp the originating browser family (D9).

Source

pub fn with_next(self, next: impl Into<String>) -> Self

Attach a drill-down “next step” command pointer.

Source

pub fn render(&self) -> String

Render the finding as a multi-line, court-safe block.

The three axes are always shown separately and labelled; Priority is explicitly framed as a triage attention cue (never a verdict); the Interpretation hedge is always present. This is the only renderer for a finding — there is no Display impl that could collapse it into a bare conclusion. (RFC 0001 D5.)

Trait Implementations§

Source§

impl Clone for Finding

Source§

fn clone(&self) -> Finding

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Finding

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Finding

Source§

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 Eq for Finding

Source§

impl PartialEq for Finding

Source§

fn eq(&self, other: &Finding) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Finding

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Finding

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.