pub struct ConfirmationGenerator { /* private fields */ }Expand description
Generator for external confirmations and responses per ISA 505.
Implementations§
Source§impl ConfirmationGenerator
impl ConfirmationGenerator
Sourcepub fn new(seed: u64) -> Self
pub fn new(seed: u64) -> Self
Create a new generator with the given seed and default configuration.
Sourcepub fn with_config(seed: u64, config: ConfirmationGeneratorConfig) -> Self
pub fn with_config(seed: u64, config: ConfirmationGeneratorConfig) -> Self
Create a new generator with custom configuration.
Sourcepub fn generate_confirmations(
&mut self,
engagement: &AuditEngagement,
workpapers: &[Workpaper],
account_codes: &[String],
) -> (Vec<ExternalConfirmation>, Vec<ConfirmationResponse>)
pub fn generate_confirmations( &mut self, engagement: &AuditEngagement, workpapers: &[Workpaper], account_codes: &[String], ) -> (Vec<ExternalConfirmation>, Vec<ConfirmationResponse>)
Generate external confirmations and responses for an engagement.
Returns a pair of vecs: (confirmations, responses). A response is
generated for every confirmation that does not remain in NoResponse
status, so the response vec may be shorter than the confirmation vec.
§Arguments
engagement— The audit engagement these confirmations belong to.workpapers— Workpapers already generated for the engagement. The generator links each confirmation to a randomly chosen substantive workpaper (if one exists).account_codes— GL account codes available in the client data. Each confirmation will reference one of these codes when the slice is non-empty.
Auto Trait Implementations§
impl Freeze for ConfirmationGenerator
impl RefUnwindSafe for ConfirmationGenerator
impl Send for ConfirmationGenerator
impl Sync for ConfirmationGenerator
impl Unpin for ConfirmationGenerator
impl UnsafeUnpin for ConfirmationGenerator
impl UnwindSafe for ConfirmationGenerator
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