Skip to main content

InternalControl

Struct InternalControl 

Source
pub struct InternalControl {
Show 14 fields pub control_id: String, pub control_name: String, pub control_type: ControlType, pub objective: String, pub frequency: ControlFrequency, pub owner_role: UserPersona, pub risk_level: RiskLevel, pub description: String, pub is_key_control: bool, pub sox_assertion: SoxAssertion, pub coso_component: CosoComponent, pub coso_principles: Vec<CosoPrinciple>, pub control_scope: ControlScope, pub maturity_level: CosoMaturityLevel,
}
Expand description

Internal control definition.

Fields§

§control_id: String

Unique control identifier (e.g., “C001”, “C010”)

§control_name: String

Control name/title

§control_type: ControlType

Type of control (Preventive, Detective, Monitoring)

§objective: String

Control objective description

§frequency: ControlFrequency

How often the control is performed

§owner_role: UserPersona

Role responsible for executing/owning the control

§risk_level: RiskLevel

Risk level associated with control failure

§description: String

Detailed description of the control procedure

§is_key_control: bool

Whether this is a SOX 404 key control

§sox_assertion: SoxAssertion

SOX assertion this control addresses

§coso_component: CosoComponent

COSO 2013 component this control maps to

§coso_principles: Vec<CosoPrinciple>

COSO 2013 principles this control addresses

§control_scope: ControlScope

Control scope (entity-level vs transaction-level)

§maturity_level: CosoMaturityLevel

Control maturity level

Implementations§

Source§

impl InternalControl

Source

pub fn new( control_id: impl Into<String>, control_name: impl Into<String>, control_type: ControlType, objective: impl Into<String>, ) -> Self

Create a new internal control.

Source

pub fn with_frequency(self, frequency: ControlFrequency) -> Self

Builder method to set frequency.

Source

pub fn with_owner(self, owner: UserPersona) -> Self

Builder method to set owner role.

Source

pub fn with_risk_level(self, level: RiskLevel) -> Self

Builder method to set risk level.

Source

pub fn with_description(self, description: impl Into<String>) -> Self

Builder method to set description.

Source

pub fn as_key_control(self) -> Self

Builder method to mark as key control.

Source

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

Builder method to set SOX assertion.

Source

pub fn with_coso_component(self, component: CosoComponent) -> Self

Builder method to set COSO component.

Source

pub fn with_coso_principles(self, principles: Vec<CosoPrinciple>) -> Self

Builder method to set COSO principles.

Source

pub fn with_control_scope(self, scope: ControlScope) -> Self

Builder method to set control scope.

Source

pub fn with_maturity_level(self, level: CosoMaturityLevel) -> Self

Builder method to set maturity level.

Source

pub fn standard_controls() -> Vec<Self>

Generate standard controls for a typical organization.

Includes both transaction-level controls (C001-C060) and entity-level controls (C070-C081) with full COSO 2013 mappings.

Trait Implementations§

Source§

impl Clone for InternalControl

Source§

fn clone(&self) -> InternalControl

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 InternalControl

Source§

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

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

impl<'de> Deserialize<'de> for InternalControl

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 InternalControl

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