pub struct ExternalExpectation {Show 19 fields
pub expectation_id: String,
pub company_code: String,
pub account_code: String,
pub account_description: String,
pub account_type: AccountType,
pub fiscal_year: i32,
pub driver: ExpectationDriver,
pub basis: String,
pub driver_value: Decimal,
pub expected_value: Decimal,
pub tolerance_pct: f64,
pub lower_bound: Decimal,
pub upper_bound: Decimal,
pub actual_value: Decimal,
pub deviation: Decimal,
pub deviation_ratio: f64,
pub exceeds_band: bool,
pub fraud_inflation: Decimal,
pub is_fraud_inflated: bool,
}Expand description
An ISA-520 substantive-analytics expectation for a single GL account over a fiscal year.
Fields§
§expectation_id: StringUnique expectation identifier.
company_code: StringCompany the account belongs to.
account_code: StringGL account number.
account_description: StringGL account description.
account_type: AccountTypeGL account type.
fiscal_year: i32Fiscal year the expectation applies to.
driver: ExpectationDriverExogenous driver the expectation is built on.
basis: StringHuman-readable expectation basis (the ISA-520 methodology note).
driver_value: DecimalThe driver’s value (e.g. the prior-year actual, or the index level).
expected_value: DecimalExpected period total for the account.
tolerance_pct: f64Materiality tolerance band as a fraction of the expectation.
lower_bound: DecimalLower bound of the acceptable band (expected * (1 - tolerance_pct)).
upper_bound: DecimalUpper bound of the acceptable band (expected * (1 + tolerance_pct)).
actual_value: DecimalRealized GL total for the account (legitimate + any fraud).
deviation: Decimalactual_value - expected_value.
deviation_ratio: f64Deviation in units of the tolerance band (a z-like score; |·| > 1 means out of band).
exceeds_band: boolWhether the actual breaches the tolerance band — the ISA-520 “investigate” trigger.
fraud_inflation: DecimalGround truth: the fraud contribution to the actual (actual - legitimate).
is_fraud_inflated: boolGround truth: whether the account received any fraud postings.
Trait Implementations§
Source§impl Clone for ExternalExpectation
impl Clone for ExternalExpectation
Source§fn clone(&self) -> ExternalExpectation
fn clone(&self) -> ExternalExpectation
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 ExternalExpectation
impl Debug for ExternalExpectation
Source§impl<'de> Deserialize<'de> for ExternalExpectation
impl<'de> Deserialize<'de> for ExternalExpectation
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 ExternalExpectation
impl RefUnwindSafe for ExternalExpectation
impl Send for ExternalExpectation
impl Sync for ExternalExpectation
impl Unpin for ExternalExpectation
impl UnsafeUnpin for ExternalExpectation
impl UnwindSafe for ExternalExpectation
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.