Skip to main content

AuditEvidence

Struct AuditEvidence 

Source
pub struct AuditEvidence {
Show 23 fields pub evidence_id: Uuid, pub evidence_ref: String, pub engagement_id: Uuid, pub evidence_type: EvidenceType, pub source_type: EvidenceSource, pub title: String, pub description: String, pub obtained_date: NaiveDate, pub obtained_by: String, pub file_hash: Option<String>, pub file_path: Option<String>, pub file_size: Option<u64>, pub reliability_assessment: ReliabilityAssessment, pub assertions_addressed: Vec<Assertion>, pub accounts_impacted: Vec<String>, pub process_areas: Vec<String>, pub linked_workpapers: Vec<Uuid>, pub related_evidence: Vec<Uuid>, pub ai_extracted_terms: Option<HashMap<String, String>>, pub ai_confidence: Option<f64>, pub ai_summary: Option<String>, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>,
}
Expand description

Audit evidence representing supporting documentation.

Fields§

§evidence_id: Uuid

Unique evidence ID

§evidence_ref: String

External reference

§engagement_id: Uuid

Engagement ID

§evidence_type: EvidenceType

Type of evidence

§source_type: EvidenceSource

Source of evidence

§title: String

Evidence title

§description: String

Description

§obtained_date: NaiveDate

Date evidence was obtained

§obtained_by: String

Who obtained the evidence

§file_hash: Option<String>

File hash for integrity verification

§file_path: Option<String>

File path or storage location

§file_size: Option<u64>

File size in bytes

§reliability_assessment: ReliabilityAssessment

Reliability assessment

§assertions_addressed: Vec<Assertion>

Assertions addressed by this evidence

§accounts_impacted: Vec<String>

Account IDs impacted

§process_areas: Vec<String>

Process areas covered

§linked_workpapers: Vec<Uuid>

Linked workpaper IDs

§related_evidence: Vec<Uuid>

Related evidence IDs

§ai_extracted_terms: Option<HashMap<String, String>>

AI-extracted key terms

§ai_confidence: Option<f64>

AI extraction confidence

§ai_summary: Option<String>

AI summary

§created_at: DateTime<Utc>§updated_at: DateTime<Utc>

Implementations§

Source§

impl AuditEvidence

Source

pub fn new( engagement_id: Uuid, evidence_type: EvidenceType, source_type: EvidenceSource, title: &str, ) -> Self

Create new audit evidence.

Source

pub fn with_description(self, description: &str) -> Self

Set the description.

Source

pub fn with_obtained_by(self, obtained_by: &str, date: NaiveDate) -> Self

Set who obtained the evidence.

Source

pub fn with_file_info(self, path: &str, hash: &str, size: u64) -> Self

Set file information.

Source

pub fn with_reliability(self, assessment: ReliabilityAssessment) -> Self

Set reliability assessment.

Source

pub fn with_assertions(self, assertions: Vec<Assertion>) -> Self

Add assertions addressed.

Source

pub fn with_ai_extraction( self, terms: HashMap<String, String>, confidence: f64, summary: &str, ) -> Self

Add AI extraction results.

Link to a workpaper.

Source

pub fn overall_reliability(&self) -> ReliabilityLevel

Get the overall reliability level.

Source

pub fn is_high_quality(&self) -> bool

Check if this is high-quality evidence.

Trait Implementations§

Source§

impl Clone for AuditEvidence

Source§

fn clone(&self) -> AuditEvidence

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AuditEvidence

Source§

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

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

impl<'de> Deserialize<'de> for AuditEvidence

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 Serialize for AuditEvidence

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

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> 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> 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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