pub struct SubsequentEvent {
pub id: String,
pub entity_code: String,
pub event_date: NaiveDate,
pub discovery_date: NaiveDate,
pub event_type: SubsequentEventType,
pub classification: EventClassification,
pub description: String,
pub financial_impact: Option<Decimal>,
pub disclosure_required: bool,
pub adjustment_entry_ids: Vec<String>,
}Expand description
A subsequent event identified during the completion phase of an audit.
Fields§
§id: StringUnique identifier for this event
entity_code: StringEntity code of the reporting entity
event_date: NaiveDateDate the event occurred
discovery_date: NaiveDateDate the event was discovered by the auditor
event_type: SubsequentEventTypeType of subsequent event
classification: EventClassificationClassification per IAS 10 (adjusting or non-adjusting)
description: StringNarrative description of the event
financial_impact: Option<Decimal>Financial impact, if quantifiable (adjusting events or disclosed amounts)
disclosure_required: boolWhether a disclosure in the notes is required
adjustment_entry_ids: Vec<String>IDs of adjustment journal entries raised for this event (future enhancement)
Implementations§
Source§impl SubsequentEvent
impl SubsequentEvent
Sourcepub fn new(
entity_code: impl Into<String>,
event_date: NaiveDate,
discovery_date: NaiveDate,
event_type: SubsequentEventType,
classification: EventClassification,
description: impl Into<String>,
) -> Self
pub fn new( entity_code: impl Into<String>, event_date: NaiveDate, discovery_date: NaiveDate, event_type: SubsequentEventType, classification: EventClassification, description: impl Into<String>, ) -> Self
Create a new subsequent event.
Sourcepub fn with_financial_impact(self, impact: Decimal) -> Self
pub fn with_financial_impact(self, impact: Decimal) -> Self
Attach a financial impact amount.
Sourcepub fn with_adjustment_entries(self, ids: Vec<String>) -> Self
pub fn with_adjustment_entries(self, ids: Vec<String>) -> Self
Mark adjustment entry IDs for this event.
Trait Implementations§
Source§impl Clone for SubsequentEvent
impl Clone for SubsequentEvent
Source§fn clone(&self) -> SubsequentEvent
fn clone(&self) -> SubsequentEvent
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 SubsequentEvent
impl Debug for SubsequentEvent
Source§impl<'de> Deserialize<'de> for SubsequentEvent
impl<'de> Deserialize<'de> for SubsequentEvent
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 SubsequentEvent
impl RefUnwindSafe for SubsequentEvent
impl Send for SubsequentEvent
impl Sync for SubsequentEvent
impl Unpin for SubsequentEvent
impl UnsafeUnpin for SubsequentEvent
impl UnwindSafe for SubsequentEvent
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