pub struct ConfirmationResponse {Show 14 fields
pub response_id: Uuid,
pub response_ref: String,
pub confirmation_id: Uuid,
pub engagement_id: Uuid,
pub response_date: NaiveDate,
pub confirmed_balance: Option<Decimal>,
pub response_type: ResponseType,
pub has_exception: bool,
pub exception_amount: Option<Decimal>,
pub exception_description: Option<String>,
pub reconciled: bool,
pub reconciliation_explanation: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Response received from a confirming party per ISA 505.
Records the details of what the confirming party stated, any exceptions, and whether the auditor has reconciled differences to the book balance.
Fields§
§response_id: UuidUnique response ID
response_ref: StringHuman-readable reference (e.g. “RESP-a1b2c3d4”)
confirmation_id: UuidThe confirmation this response relates to
engagement_id: UuidEngagement this response belongs to
response_date: NaiveDateDate the response was received
confirmed_balance: Option<Decimal>Balance stated by the confirming party (None for blank forms not filled in)
response_type: ResponseTypeNature of the response
has_exception: boolWhether the confirming party noted any exceptions
exception_amount: Option<Decimal>Monetary value of the noted exception, if any
exception_description: Option<String>Description of the exception
reconciled: boolWhether differences have been reconciled
reconciliation_explanation: Option<String>Explanation of the reconciliation
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ConfirmationResponse
impl ConfirmationResponse
Sourcepub fn new(
confirmation_id: Uuid,
engagement_id: Uuid,
response_date: NaiveDate,
response_type: ResponseType,
) -> Self
pub fn new( confirmation_id: Uuid, engagement_id: Uuid, response_date: NaiveDate, response_type: ResponseType, ) -> Self
Create a new confirmation response.
Sourcepub fn with_confirmed_balance(self, balance: Decimal) -> Self
pub fn with_confirmed_balance(self, balance: Decimal) -> Self
Record the balance confirmed by the third party.
Sourcepub fn with_exception(self, amount: Decimal, description: &str) -> Self
pub fn with_exception(self, amount: Decimal, description: &str) -> Self
Record an exception noted by the confirming party.
Trait Implementations§
Source§impl Clone for ConfirmationResponse
impl Clone for ConfirmationResponse
Source§fn clone(&self) -> ConfirmationResponse
fn clone(&self) -> ConfirmationResponse
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 ConfirmationResponse
impl Debug for ConfirmationResponse
Source§impl<'de> Deserialize<'de> for ConfirmationResponse
impl<'de> Deserialize<'de> for ConfirmationResponse
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 ConfirmationResponse
impl RefUnwindSafe for ConfirmationResponse
impl Send for ConfirmationResponse
impl Sync for ConfirmationResponse
impl Unpin for ConfirmationResponse
impl UnsafeUnpin for ConfirmationResponse
impl UnwindSafe for ConfirmationResponse
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.