pub struct EvidenceGenerator { /* private fields */ }Expand description
Generator for audit evidence.
Implementations§
Source§impl EvidenceGenerator
impl EvidenceGenerator
Sourcepub fn with_config(seed: u64, config: EvidenceGeneratorConfig) -> Self
pub fn with_config(seed: u64, config: EvidenceGeneratorConfig) -> Self
Create a new generator with custom configuration.
Sourcepub fn generate_evidence_for_workpaper(
&mut self,
workpaper: &Workpaper,
team_members: &[String],
base_date: NaiveDate,
) -> Vec<AuditEvidence>
pub fn generate_evidence_for_workpaper( &mut self, workpaper: &Workpaper, team_members: &[String], base_date: NaiveDate, ) -> Vec<AuditEvidence>
Generate evidence for a workpaper.
Sourcepub fn generate_evidence_for_workpaper_with_context(
&mut self,
workpaper: &Workpaper,
team_members: &[String],
base_date: NaiveDate,
context: &EvidenceContext,
) -> Vec<AuditEvidence>
pub fn generate_evidence_for_workpaper_with_context( &mut self, workpaper: &Workpaper, team_members: &[String], base_date: NaiveDate, context: &EvidenceContext, ) -> Vec<AuditEvidence>
Generate evidence for a workpaper with risk/assertion/balance context.
When the EvidenceContext provides an assertion, evidence types are
weighted to match audit methodology (e.g. Existence favours
confirmations; Completeness favours analytical procedures). When a
risk level is provided, high-risk areas receive a higher proportion of
external third-party evidence. When an account balance is provided,
AI-extracted amounts are anchored to the real GL balance.
Sourcepub fn generate_evidence(
&mut self,
engagement_id: Uuid,
workpaper_id: Option<Uuid>,
assertions: &[Assertion],
team_members: &[String],
obtained_date: NaiveDate,
) -> AuditEvidence
pub fn generate_evidence( &mut self, engagement_id: Uuid, workpaper_id: Option<Uuid>, assertions: &[Assertion], team_members: &[String], obtained_date: NaiveDate, ) -> AuditEvidence
Generate a single piece of evidence.
Sourcepub fn generate_evidence_for_engagement(
&mut self,
engagement: &AuditEngagement,
workpapers: &[Workpaper],
team_members: &[String],
) -> Vec<AuditEvidence>
pub fn generate_evidence_for_engagement( &mut self, engagement: &AuditEngagement, workpapers: &[Workpaper], team_members: &[String], ) -> Vec<AuditEvidence>
Generate evidence for an entire engagement.
Auto Trait Implementations§
impl Freeze for EvidenceGenerator
impl RefUnwindSafe for EvidenceGenerator
impl Send for EvidenceGenerator
impl Sync for EvidenceGenerator
impl Unpin for EvidenceGenerator
impl UnsafeUnpin for EvidenceGenerator
impl UnwindSafe for EvidenceGenerator
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
Mutably borrows from an owned value. Read more
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.