Skip to main content

RiskAssessment

Struct RiskAssessment 

Source
pub struct RiskAssessment {
Show 28 fields pub risk_id: Uuid, pub risk_ref: String, pub engagement_id: Uuid, pub risk_category: RiskCategory, pub account_or_process: String, pub assertion: Option<Assertion>, pub description: String, pub inherent_risk: RiskLevel, pub control_risk: RiskLevel, pub risk_of_material_misstatement: RiskLevel, pub is_significant_risk: bool, pub significant_risk_rationale: Option<String>, pub fraud_risk_factors: Vec<FraudRiskFactor>, pub presumed_revenue_fraud_risk: bool, pub presumed_management_override: bool, pub planned_response: Vec<PlannedResponse>, pub response_nature: ResponseNature, pub response_extent: String, pub response_timing: ResponseTiming, pub assessed_by: String, pub assessed_date: NaiveDate, pub review_status: RiskReviewStatus, pub reviewer_id: Option<String>, pub review_date: Option<NaiveDate>, pub workpaper_refs: Vec<Uuid>, pub related_controls: Vec<String>, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>,
}
Expand description

Risk assessment for an account or process.

Fields§

§risk_id: Uuid

Unique risk ID

§risk_ref: String

External reference

§engagement_id: Uuid

Engagement ID

§risk_category: RiskCategory

Risk category

§account_or_process: String

Account or process being assessed

§assertion: Option<Assertion>

Specific assertion if applicable

§description: String

Risk description

§inherent_risk: RiskLevel

Inherent risk assessment

§control_risk: RiskLevel

Control risk assessment

§risk_of_material_misstatement: RiskLevel

Combined risk of material misstatement

§is_significant_risk: bool

Is this a significant risk per ISA 315?

§significant_risk_rationale: Option<String>

Rationale for significant risk designation

§fraud_risk_factors: Vec<FraudRiskFactor>

Fraud risk factors identified

§presumed_revenue_fraud_risk: bool

Presumed fraud risk in revenue recognition?

§presumed_management_override: bool

Presumed management override risk?

§planned_response: Vec<PlannedResponse>

Planned audit response

§response_nature: ResponseNature

Nature of procedures (substantive, control, combined)

§response_extent: String

Extent (sample size considerations)

§response_timing: ResponseTiming

Timing (interim, year-end, subsequent)

§assessed_by: String

Assessed by user ID

§assessed_date: NaiveDate

Assessment date

§review_status: RiskReviewStatus

Review status

§reviewer_id: Option<String>

Reviewer ID

§review_date: Option<NaiveDate>

Review date

§workpaper_refs: Vec<Uuid>

Related workpaper IDs

§related_controls: Vec<String>

Related control IDs

§created_at: DateTime<Utc>§updated_at: DateTime<Utc>

Implementations§

Source§

impl RiskAssessment

Source

pub fn new( engagement_id: Uuid, risk_category: RiskCategory, account_or_process: &str, description: &str, ) -> Self

Create a new risk assessment.

Source

pub fn with_assertion(self, assertion: Assertion) -> Self

Set the assertion being assessed.

Source

pub fn with_risk_levels(self, inherent: RiskLevel, control: RiskLevel) -> Self

Set risk levels.

Source

pub fn mark_significant(self, rationale: &str) -> Self

Mark as significant risk.

Source

pub fn add_fraud_factor(&mut self, factor: FraudRiskFactor)

Add a fraud risk factor.

Source

pub fn add_response(&mut self, response: PlannedResponse)

Add a planned response.

Source

pub fn with_assessed_by(self, user_id: &str, date: NaiveDate) -> Self

Set who assessed this risk.

Source

pub fn required_detection_risk(&self) -> DetectionRisk

Get the detection risk needed to achieve acceptable audit risk.

Source

pub fn requires_special_consideration(&self) -> bool

Check if this risk requires special audit consideration.

Trait Implementations§

Source§

impl Clone for RiskAssessment

Source§

fn clone(&self) -> RiskAssessment

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 RiskAssessment

Source§

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

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

impl<'de> Deserialize<'de> for RiskAssessment

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 RiskAssessment

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>,