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: UuidUnique evidence ID
evidence_ref: StringExternal reference
engagement_id: UuidEngagement ID
evidence_type: EvidenceTypeType of evidence
source_type: EvidenceSourceSource of evidence
title: StringEvidence title
description: StringDescription
obtained_date: NaiveDateDate evidence was obtained
obtained_by: StringWho 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: ReliabilityAssessmentReliability 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 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
impl AuditEvidence
Sourcepub fn new(
engagement_id: Uuid,
evidence_type: EvidenceType,
source_type: EvidenceSource,
title: &str,
) -> Self
pub fn new( engagement_id: Uuid, evidence_type: EvidenceType, source_type: EvidenceSource, title: &str, ) -> Self
Create new audit evidence.
Sourcepub fn with_description(self, description: &str) -> Self
pub fn with_description(self, description: &str) -> Self
Set the description.
Sourcepub fn with_obtained_by(self, obtained_by: &str, date: NaiveDate) -> Self
pub fn with_obtained_by(self, obtained_by: &str, date: NaiveDate) -> Self
Set who obtained the evidence.
Sourcepub fn with_file_info(self, path: &str, hash: &str, size: u64) -> Self
pub fn with_file_info(self, path: &str, hash: &str, size: u64) -> Self
Set file information.
Sourcepub fn with_reliability(self, assessment: ReliabilityAssessment) -> Self
pub fn with_reliability(self, assessment: ReliabilityAssessment) -> Self
Set reliability assessment.
Sourcepub fn with_assertions(self, assertions: Vec<Assertion>) -> Self
pub fn with_assertions(self, assertions: Vec<Assertion>) -> Self
Add assertions addressed.
Sourcepub fn with_ai_extraction(
self,
terms: HashMap<String, String>,
confidence: f64,
summary: &str,
) -> Self
pub fn with_ai_extraction( self, terms: HashMap<String, String>, confidence: f64, summary: &str, ) -> Self
Add AI extraction results.
Sourcepub fn link_workpaper(&mut self, workpaper_id: Uuid)
pub fn link_workpaper(&mut self, workpaper_id: Uuid)
Link to a workpaper.
Sourcepub fn overall_reliability(&self) -> ReliabilityLevel
pub fn overall_reliability(&self) -> ReliabilityLevel
Get the overall reliability level.
Sourcepub fn is_high_quality(&self) -> bool
pub fn is_high_quality(&self) -> bool
Check if this is high-quality evidence.
Trait Implementations§
Source§impl Clone for AuditEvidence
impl Clone for AuditEvidence
Source§fn clone(&self) -> AuditEvidence
fn clone(&self) -> AuditEvidence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more