pub struct AuditProcedureStep {Show 20 fields
pub step_id: Uuid,
pub step_ref: String,
pub workpaper_id: Uuid,
pub engagement_id: Uuid,
pub step_number: u32,
pub description: String,
pub procedure_type: StepProcedureType,
pub assertion: Assertion,
pub planned_date: Option<NaiveDate>,
pub performed_date: Option<NaiveDate>,
pub performed_by: Option<String>,
pub performed_by_name: Option<String>,
pub status: StepStatus,
pub result: Option<StepResult>,
pub exception_noted: bool,
pub exception_description: Option<String>,
pub sample_id: Option<Uuid>,
pub evidence_ids: Vec<Uuid>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A single documented step within an audit workpaper (ISA 330).
Fields§
§step_id: UuidUnique step ID
step_ref: StringStep reference code, e.g. “STEP-a1b2c3d4-01”
workpaper_id: UuidWorkpaper this step belongs to
engagement_id: UuidEngagement this step belongs to
step_number: u32Sequential step number within the workpaper
description: StringDescription of the procedure
procedure_type: StepProcedureTypeType of audit procedure
assertion: AssertionAssertion addressed by this step
planned_date: Option<NaiveDate>Planned performance date
performed_date: Option<NaiveDate>Actual performance date
performed_by: Option<String>User ID of the performer
performed_by_name: Option<String>Display name of the performer
status: StepStatusCurrent status of the step
result: Option<StepResult>Result after completion
exception_noted: boolWhether an exception was noted
exception_description: Option<String>Description of any exception
sample_id: Option<Uuid>Linked audit sample, if sampling was used
evidence_ids: Vec<Uuid>Evidence items supporting this step
created_at: DateTime<Utc>Creation timestamp
updated_at: DateTime<Utc>Last-modified timestamp
Implementations§
Source§impl AuditProcedureStep
impl AuditProcedureStep
Sourcepub fn new(
workpaper_id: Uuid,
engagement_id: Uuid,
step_number: u32,
description: impl Into<String>,
procedure_type: StepProcedureType,
assertion: Assertion,
) -> Self
pub fn new( workpaper_id: Uuid, engagement_id: Uuid, step_number: u32, description: impl Into<String>, procedure_type: StepProcedureType, assertion: Assertion, ) -> Self
Create a new planned audit procedure step.
Sourcepub fn with_sample(self, sample_id: Uuid) -> Self
pub fn with_sample(self, sample_id: Uuid) -> Self
Link this step to an audit sample.
Sourcepub fn with_evidence(self, evidence_ids: Vec<Uuid>) -> Self
pub fn with_evidence(self, evidence_ids: Vec<Uuid>) -> Self
Attach a set of evidence items to this step.
Trait Implementations§
Source§impl Clone for AuditProcedureStep
impl Clone for AuditProcedureStep
Source§fn clone(&self) -> AuditProcedureStep
fn clone(&self) -> AuditProcedureStep
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 AuditProcedureStep
impl Debug for AuditProcedureStep
Source§impl<'de> Deserialize<'de> for AuditProcedureStep
impl<'de> Deserialize<'de> for AuditProcedureStep
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 AuditProcedureStep
impl RefUnwindSafe for AuditProcedureStep
impl Send for AuditProcedureStep
impl Sync for AuditProcedureStep
impl Unpin for AuditProcedureStep
impl UnsafeUnpin for AuditProcedureStep
impl UnwindSafe for AuditProcedureStep
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.