pub struct SamplingPlan {Show 14 fields
pub id: String,
pub entity_code: String,
pub account_area: String,
pub assertion: String,
pub methodology: SamplingMethodology,
pub population_size: usize,
pub population_value: Decimal,
pub key_items: Vec<KeyItem>,
pub key_items_value: Decimal,
pub remaining_population_value: Decimal,
pub sample_size: usize,
pub sampling_interval: Decimal,
pub cra_level: String,
pub tolerable_error: Decimal,
}Expand description
Audit sampling plan for a single account area / assertion combination.
One plan is generated for each CRA at Moderate or High level, documenting the full ISA 530-compliant sampling design and execution.
Fields§
§id: StringUnique identifier for this sampling plan (deterministic slug).
entity_code: StringEntity / company code.
account_area: StringAccount area being tested (e.g. “Trade Receivables”, “Revenue”).
assertion: StringFinancial statement assertion being tested (e.g. “Existence”).
methodology: SamplingMethodologySampling methodology chosen for this plan.
population_size: usizeTotal number of items in the population before key item extraction.
population_value: DecimalTotal monetary value of the population.
key_items: Vec<KeyItem>Key items identified and extracted for 100% testing.
key_items_value: DecimalTotal monetary value of all key items.
remaining_population_value: DecimalMonetary value of the residual population (population_value − key_items_value).
sample_size: usizeNumber of representative sample items drawn from the residual population.
sampling_interval: DecimalSampling interval = remaining_population_value / sample_size (for MUS / systematic).
cra_level: StringCRA level that drove this plan (links to CombinedRiskAssessment.combined_risk).
tolerable_error: DecimalTolerable error for this population (equals performance materiality from ISA 320).
Trait Implementations§
Source§impl Clone for SamplingPlan
impl Clone for SamplingPlan
Source§fn clone(&self) -> SamplingPlan
fn clone(&self) -> SamplingPlan
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 SamplingPlan
impl Debug for SamplingPlan
Source§impl<'de> Deserialize<'de> for SamplingPlan
impl<'de> Deserialize<'de> for SamplingPlan
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 SamplingPlan
impl RefUnwindSafe for SamplingPlan
impl Send for SamplingPlan
impl Sync for SamplingPlan
impl Unpin for SamplingPlan
impl UnsafeUnpin for SamplingPlan
impl UnwindSafe for SamplingPlan
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.