pub struct IndexedRestatement {
pub account_code: String,
pub historical_date: NaiveDate,
pub reporting_date: NaiveDate,
pub historical_amount: Decimal,
pub indexation_factor: Decimal,
pub restated_amount: Decimal,
pub currency: String,
}Expand description
One line-item restatement under IAS 29 § 12.
Fields§
§account_code: StringAccount code being restated.
historical_date: NaiveDateThe historical date on which the underlying item was recognised (acquisition date for non-monetary items).
reporting_date: NaiveDateReporting period end the restatement is being made for.
historical_amount: DecimalPre-restatement (historical-cost) carrying amount, in the functional currency.
indexation_factor: DecimalIndexation factor applied =
index(reporting_date) / index(historical_date).
restated_amount: DecimalPost-restatement amount =
historical_amount * indexation_factor.
currency: StringFunctional currency code.
Implementations§
Source§impl IndexedRestatement
impl IndexedRestatement
Sourcepub fn restate(
account_code: impl Into<String>,
historical_date: NaiveDate,
reporting_date: NaiveDate,
historical_amount: Decimal,
index: &GeneralPriceIndex,
) -> Option<Self>
pub fn restate( account_code: impl Into<String>, historical_date: NaiveDate, reporting_date: NaiveDate, historical_amount: Decimal, index: &GeneralPriceIndex, ) -> Option<Self>
Restate historical_amount from historical_date to
reporting_date using the supplied GeneralPriceIndex.
Returns None when the index can’t yield a factor for either
date. Pure projection — no I/O.
Sourcepub fn adjustment(&self) -> Decimal
pub fn adjustment(&self) -> Decimal
Restatement adjustment amount =
restated_amount − historical_amount. Positive when the
asset’s measured value increased (general inflation outpaces
historical book value); negative when the index has fallen
(rare — typically only happens with a base-period reset).
Trait Implementations§
Source§impl Clone for IndexedRestatement
impl Clone for IndexedRestatement
Source§fn clone(&self) -> IndexedRestatement
fn clone(&self) -> IndexedRestatement
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 IndexedRestatement
impl Debug for IndexedRestatement
Source§impl<'de> Deserialize<'de> for IndexedRestatement
impl<'de> Deserialize<'de> for IndexedRestatement
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>,
Source§impl PartialEq for IndexedRestatement
impl PartialEq for IndexedRestatement
Source§fn eq(&self, other: &IndexedRestatement) -> bool
fn eq(&self, other: &IndexedRestatement) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexedRestatement
impl Serialize for IndexedRestatement
impl StructuralPartialEq for IndexedRestatement
Auto Trait Implementations§
impl Freeze for IndexedRestatement
impl RefUnwindSafe for IndexedRestatement
impl Send for IndexedRestatement
impl Sync for IndexedRestatement
impl Unpin for IndexedRestatement
impl UnsafeUnpin for IndexedRestatement
impl UnwindSafe for IndexedRestatement
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>
impl<T> Scalar for T
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.