pub struct SamplingValidationResult {
pub total_population: usize,
pub strata: Vec<StratumResult>,
pub above_materiality_coverage: f64,
pub anomaly_stratum_coverage: f64,
pub entity_coverage: f64,
pub temporal_coverage: f64,
pub passes: bool,
}Expand description
Overall result of materiality-stratified sampling validation.
Fields§
§total_population: usizeTotal number of journal entries supplied.
strata: Vec<StratumResult>Per-stratum breakdown.
above_materiality_coverage: f64Fraction of above-materiality items that are anomaly-flagged.
Pass threshold: ≥ 0.95 (auditors expect near-complete coverage of large items).
anomaly_stratum_coverage: f64Fraction of strata (excluding ClearlyTrivial) that contain at least one anomaly.
entity_coverage: f64Fraction of unique entity codes (company codes) with at least one anomaly.
temporal_coverage: f64Fraction of unique fiscal periods with at least one anomaly.
passes: boolTrue when above_materiality_coverage ≥ 0.95 (relaxed threshold for synthetic data).
Trait Implementations§
Source§impl Clone for SamplingValidationResult
impl Clone for SamplingValidationResult
Source§fn clone(&self) -> SamplingValidationResult
fn clone(&self) -> SamplingValidationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SamplingValidationResult
impl Debug for SamplingValidationResult
Source§impl<'de> Deserialize<'de> for SamplingValidationResult
impl<'de> Deserialize<'de> for SamplingValidationResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SamplingValidationResult
impl RefUnwindSafe for SamplingValidationResult
impl Send for SamplingValidationResult
impl Sync for SamplingValidationResult
impl Unpin for SamplingValidationResult
impl UnsafeUnpin for SamplingValidationResult
impl UnwindSafe for SamplingValidationResult
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> 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>
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.