pub struct AuditEvidence {Show 24 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 status: EvidenceStatus,
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
status: EvidenceStatusCurrent status of this evidence item
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuditEvidence
impl Debug for AuditEvidence
Source§impl<'de> Deserialize<'de> for AuditEvidence
impl<'de> Deserialize<'de> for AuditEvidence
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>,
Auto Trait Implementations§
impl Freeze for AuditEvidence
impl RefUnwindSafe for AuditEvidence
impl Send for AuditEvidence
impl Sync for AuditEvidence
impl Unpin for AuditEvidence
impl UnsafeUnpin for AuditEvidence
impl UnwindSafe for AuditEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.