Skip to main content

ProfessionalJudgment

Struct ProfessionalJudgment 

Source
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: Uuid

Unique judgment ID

§judgment_ref: String

External reference

§engagement_id: Uuid

Engagement ID

§judgment_type: JudgmentType

Type of judgment

§subject: String

Subject matter of the judgment

§applicable_standards: Vec<String>

Applicable auditing standards

§issue_description: String

Issue or matter requiring judgment

§information_considered: Vec<InformationItem>

Information and factors considered

§alternatives_evaluated: Vec<AlternativeEvaluation>

Alternatives evaluated

§skepticism_applied: SkepticismDocumentation

Professional skepticism applied

§conclusion: String

Conclusion reached

§rationale: String

Rationale for conclusion

§residual_risk: String

Residual risk or uncertainty

§impact_on_audit: Option<String>

Impact on audit approach

§consultation_required: bool

Was consultation required?

§consultation: Option<ConsultationRecord>

Consultation details

§preparer_id: String

Preparer user ID

§preparer_name: String

Preparer name

§preparer_date: NaiveDate

Date prepared

§reviewer_id: Option<String>

Reviewer ID

§reviewer_name: Option<String>

Reviewer name

§reviewer_date: Option<NaiveDate>

Review date

§partner_concurrence_required: bool

Partner 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

Source

pub fn new( engagement_id: Uuid, judgment_type: JudgmentType, subject: &str, ) -> Self

Create a new professional judgment document.

Source

pub fn with_issue(self, issue: &str) -> Self

Set the issue description.

Source

pub fn add_information(&mut self, item: InformationItem)

Add information considered.

Source

pub fn add_alternative(&mut self, alternative: AlternativeEvaluation)

Add an alternative evaluation.

Source

pub fn with_skepticism(self, skepticism: SkepticismDocumentation) -> Self

Set skepticism documentation.

Source

pub fn with_conclusion( self, conclusion: &str, rationale: &str, residual_risk: &str, ) -> Self

Set conclusion.

Source

pub fn with_preparer(self, id: &str, name: &str, date: NaiveDate) -> Self

Set preparer.

Source

pub fn add_review(&mut self, id: &str, name: &str, date: NaiveDate)

Add reviewer sign-off.

Source

pub fn add_partner_concurrence(&mut self, id: &str, date: NaiveDate)

Add partner concurrence.

Source

pub fn add_consultation(&mut self, consultation: ConsultationRecord)

Add consultation record.

Source

pub fn is_approved(&self) -> bool

Check if judgment is fully approved.

Trait Implementations§

Source§

impl Clone for ProfessionalJudgment

Source§

fn clone(&self) -> ProfessionalJudgment

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProfessionalJudgment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ProfessionalJudgment

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ProfessionalJudgment

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,