pub struct ComplianceFinding {Show 16 fields
pub finding_id: Uuid,
pub company_code: String,
pub title: String,
pub description: String,
pub severity: FindingSeverity,
pub deficiency_level: DeficiencyLevel,
pub control_id: Option<String>,
pub procedure_id: Option<String>,
pub affected_assertions: Vec<ComplianceAssertion>,
pub related_standards: Vec<StandardId>,
pub identified_date: NaiveDate,
pub remediation_status: RemediationStatus,
pub financial_impact: Option<Decimal>,
pub is_repeat: bool,
pub affected_accounts: Vec<String>,
pub fiscal_year: i32,
}Expand description
A compliance finding from an audit procedure.
Fields§
§finding_id: UuidUnique finding identifier
company_code: StringCompany code
title: StringFinding title
description: StringDetailed description
severity: FindingSeverityFinding severity
deficiency_level: DeficiencyLevelDeficiency classification (SOX)
control_id: Option<String>Control ID where finding was identified
procedure_id: Option<String>Procedure that identified this finding
affected_assertions: Vec<ComplianceAssertion>Affected audit assertions
Related standards
identified_date: NaiveDateDate finding was identified
remediation_status: RemediationStatusRemediation status
financial_impact: Option<Decimal>Estimated financial impact
is_repeat: boolWhether this is a repeat finding from a prior period
affected_accounts: Vec<String>Account codes affected
fiscal_year: i32Fiscal year
Implementations§
Source§impl ComplianceFinding
impl ComplianceFinding
Sourcepub fn new(
company_code: impl Into<String>,
title: impl Into<String>,
severity: FindingSeverity,
deficiency_level: DeficiencyLevel,
identified_date: NaiveDate,
) -> Self
pub fn new( company_code: impl Into<String>, title: impl Into<String>, severity: FindingSeverity, deficiency_level: DeficiencyLevel, identified_date: NaiveDate, ) -> Self
Creates a new compliance finding.
Sourcepub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
Sets the description.
Sourcepub fn on_control(self, control_id: impl Into<String>) -> Self
pub fn on_control(self, control_id: impl Into<String>) -> Self
Links to a control.
Sourcepub fn identified_by(self, procedure_id: impl Into<String>) -> Self
pub fn identified_by(self, procedure_id: impl Into<String>) -> Self
Links to a procedure.
Sourcepub fn with_assertion(self, assertion: ComplianceAssertion) -> Self
pub fn with_assertion(self, assertion: ComplianceAssertion) -> Self
Adds an affected assertion.
Sourcepub fn with_standard(self, id: StandardId) -> Self
pub fn with_standard(self, id: StandardId) -> Self
Adds a related standard.
Sourcepub fn with_remediation(self, status: RemediationStatus) -> Self
pub fn with_remediation(self, status: RemediationStatus) -> Self
Sets the remediation status.
Trait Implementations§
Source§impl Clone for ComplianceFinding
impl Clone for ComplianceFinding
Source§fn clone(&self) -> ComplianceFinding
fn clone(&self) -> ComplianceFinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComplianceFinding
impl Debug for ComplianceFinding
Source§impl<'de> Deserialize<'de> for ComplianceFinding
impl<'de> Deserialize<'de> for ComplianceFinding
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
Source§impl Serialize for ComplianceFinding
impl Serialize for ComplianceFinding
Source§impl ToNodeProperties for ComplianceFinding
impl ToNodeProperties for ComplianceFinding
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
Auto Trait Implementations§
impl Freeze for ComplianceFinding
impl RefUnwindSafe for ComplianceFinding
impl Send for ComplianceFinding
impl Sync for ComplianceFinding
impl Unpin for ComplianceFinding
impl UnsafeUnpin for ComplianceFinding
impl UnwindSafe for ComplianceFinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.