pub struct ProfessionalJudgment {Show 30 fields
pub judgment_id: Uuid,
pub judgment_ref: String,
pub engagement_id: Uuid,
pub judgment_type: JudgmentType,
pub subject: String,
pub applicable_standards: Vec<String>,
pub issue_description: String,
pub information_considered: Vec<InformationItem>,
pub alternatives_evaluated: Vec<AlternativeEvaluation>,
pub skepticism_applied: SkepticismDocumentation,
pub conclusion: String,
pub rationale: String,
pub residual_risk: String,
pub impact_on_audit: Option<String>,
pub consultation_required: bool,
pub consultation: Option<ConsultationRecord>,
pub preparer_id: String,
pub preparer_name: String,
pub preparer_date: NaiveDate,
pub reviewer_id: Option<String>,
pub reviewer_name: Option<String>,
pub reviewer_date: Option<NaiveDate>,
pub partner_concurrence_required: bool,
pub partner_concurrence_id: Option<String>,
pub partner_concurrence_date: Option<NaiveDate>,
pub workpaper_refs: Vec<Uuid>,
pub evidence_refs: Vec<Uuid>,
pub status: JudgmentStatus,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Professional judgment documentation.
Fields§
§judgment_id: UuidUnique judgment ID
judgment_ref: StringExternal reference
engagement_id: UuidEngagement ID
judgment_type: JudgmentTypeType of judgment
subject: StringSubject matter of the judgment
applicable_standards: Vec<String>Applicable auditing standards
issue_description: StringIssue or matter requiring judgment
information_considered: Vec<InformationItem>Information and factors considered
alternatives_evaluated: Vec<AlternativeEvaluation>Alternatives evaluated
skepticism_applied: SkepticismDocumentationProfessional skepticism applied
conclusion: StringConclusion reached
rationale: StringRationale for conclusion
residual_risk: StringResidual risk or uncertainty
impact_on_audit: Option<String>Impact on audit approach
consultation_required: boolWas consultation required?
consultation: Option<ConsultationRecord>Consultation details
preparer_id: StringPreparer user ID
preparer_name: StringPreparer name
preparer_date: NaiveDateDate prepared
reviewer_id: Option<String>Reviewer ID
reviewer_name: Option<String>Reviewer name
reviewer_date: Option<NaiveDate>Review date
partner_concurrence_required: boolPartner concurrence required?
partner_concurrence_id: Option<String>Partner concurrence ID
partner_concurrence_date: Option<NaiveDate>Partner concurrence date
workpaper_refs: Vec<Uuid>Related workpaper IDs
evidence_refs: Vec<Uuid>Related evidence IDs
status: JudgmentStatus§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ProfessionalJudgment
impl ProfessionalJudgment
Sourcepub fn new(
engagement_id: Uuid,
judgment_type: JudgmentType,
subject: &str,
) -> Self
pub fn new( engagement_id: Uuid, judgment_type: JudgmentType, subject: &str, ) -> Self
Create a new professional judgment document.
Sourcepub fn with_issue(self, issue: &str) -> Self
pub fn with_issue(self, issue: &str) -> Self
Set the issue description.
Sourcepub fn add_information(&mut self, item: InformationItem)
pub fn add_information(&mut self, item: InformationItem)
Add information considered.
Sourcepub fn add_alternative(&mut self, alternative: AlternativeEvaluation)
pub fn add_alternative(&mut self, alternative: AlternativeEvaluation)
Add an alternative evaluation.
Sourcepub fn with_skepticism(self, skepticism: SkepticismDocumentation) -> Self
pub fn with_skepticism(self, skepticism: SkepticismDocumentation) -> Self
Set skepticism documentation.
Sourcepub fn with_conclusion(
self,
conclusion: &str,
rationale: &str,
residual_risk: &str,
) -> Self
pub fn with_conclusion( self, conclusion: &str, rationale: &str, residual_risk: &str, ) -> Self
Set conclusion.
Sourcepub fn with_preparer(self, id: &str, name: &str, date: NaiveDate) -> Self
pub fn with_preparer(self, id: &str, name: &str, date: NaiveDate) -> Self
Set preparer.
Sourcepub fn add_review(&mut self, id: &str, name: &str, date: NaiveDate)
pub fn add_review(&mut self, id: &str, name: &str, date: NaiveDate)
Add reviewer sign-off.
Sourcepub fn add_partner_concurrence(&mut self, id: &str, date: NaiveDate)
pub fn add_partner_concurrence(&mut self, id: &str, date: NaiveDate)
Add partner concurrence.
Sourcepub fn add_consultation(&mut self, consultation: ConsultationRecord)
pub fn add_consultation(&mut self, consultation: ConsultationRecord)
Add consultation record.
Sourcepub fn is_approved(&self) -> bool
pub fn is_approved(&self) -> bool
Check if judgment is fully approved.
Trait Implementations§
Source§impl Clone for ProfessionalJudgment
impl Clone for ProfessionalJudgment
Source§fn clone(&self) -> ProfessionalJudgment
fn clone(&self) -> ProfessionalJudgment
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 ProfessionalJudgment
impl Debug for ProfessionalJudgment
Source§impl<'de> Deserialize<'de> for ProfessionalJudgment
impl<'de> Deserialize<'de> for ProfessionalJudgment
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 Serialize for ProfessionalJudgment
impl Serialize for ProfessionalJudgment
Source§impl ToNodeProperties for ProfessionalJudgment
impl ToNodeProperties for ProfessionalJudgment
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Auto Trait Implementations§
impl Freeze for ProfessionalJudgment
impl RefUnwindSafe for ProfessionalJudgment
impl Send for ProfessionalJudgment
impl Sync for ProfessionalJudgment
impl Unpin for ProfessionalJudgment
impl UnsafeUnpin for ProfessionalJudgment
impl UnwindSafe for ProfessionalJudgment
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.