pub struct WorkpaperGenerator { /* private fields */ }Expand description
Generator for audit workpapers.
Implementations§
Source§impl WorkpaperGenerator
impl WorkpaperGenerator
Sourcepub fn with_config(seed: u64, config: WorkpaperGeneratorConfig) -> Self
pub fn with_config(seed: u64, config: WorkpaperGeneratorConfig) -> Self
Create a new generator with custom configuration.
Sourcepub fn set_schema_configs(
&mut self,
workpapers: &WorkpaperConfig,
review: &ReviewWorkflowConfig,
)
pub fn set_schema_configs( &mut self, workpapers: &WorkpaperConfig, review: &ReviewWorkflowConfig, )
v3.3.2: override internal config from the user-facing audit
schema configuration (WorkpaperConfig + ReviewWorkflowConfig).
Mapping:
WorkpaperConfig.average_per_phase→ a range of ±50% around the configured average, clamped to ≥1. E.g.average=5→workpapers_per_section = (3, 8).ReviewWorkflowConfig.average_review_delay_days→ a ±1-day band around the average used for both first and second review delays.
The sampling / ISA-reference / cross-reference flags on
WorkpaperConfig are not currently mapped to the generator’s
internal state — they’re used by downstream formatting logic
and reserved for v3.4+ (where we add explicit ISA-reference
annotations to generated workpaper titles).
Sourcepub fn generate_workpapers_for_phase(
&mut self,
engagement: &AuditEngagement,
phase: EngagementPhase,
phase_date: NaiveDate,
team_members: &[String],
) -> Vec<Workpaper>
pub fn generate_workpapers_for_phase( &mut self, engagement: &AuditEngagement, phase: EngagementPhase, phase_date: NaiveDate, team_members: &[String], ) -> Vec<Workpaper>
Generate workpapers for an engagement phase.
Sourcepub fn generate_workpaper(
&mut self,
engagement: &AuditEngagement,
section: WorkpaperSection,
base_date: NaiveDate,
team_members: &[String],
) -> Workpaper
pub fn generate_workpaper( &mut self, engagement: &AuditEngagement, section: WorkpaperSection, base_date: NaiveDate, team_members: &[String], ) -> Workpaper
Generate a single workpaper.
Sourcepub fn generate_workpaper_with_context(
&mut self,
engagement: &AuditEngagement,
section: WorkpaperSection,
base_date: NaiveDate,
team_members: &[String],
enrichment: &WorkpaperEnrichment,
) -> Workpaper
pub fn generate_workpaper_with_context( &mut self, engagement: &AuditEngagement, section: WorkpaperSection, base_date: NaiveDate, team_members: &[String], enrichment: &WorkpaperEnrichment, ) -> Workpaper
Generate a workpaper enriched with real financial data and risk context.
Produces the base workpaper via generate_workpaper and then enriches
the title, objective, procedure, and scope fields using the provided
WorkpaperEnrichment context.
Sourcepub fn generate_complete_workpaper_set(
&mut self,
engagement: &AuditEngagement,
team_members: &[String],
) -> Vec<Workpaper>
pub fn generate_complete_workpaper_set( &mut self, engagement: &AuditEngagement, team_members: &[String], ) -> Vec<Workpaper>
Generate all workpapers for a complete engagement.
Auto Trait Implementations§
impl Freeze for WorkpaperGenerator
impl RefUnwindSafe for WorkpaperGenerator
impl Send for WorkpaperGenerator
impl Sync for WorkpaperGenerator
impl Unpin for WorkpaperGenerator
impl UnsafeUnpin for WorkpaperGenerator
impl UnwindSafe for WorkpaperGenerator
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> 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.