Skip to main content

ControlExporter

Struct ControlExporter 

Source
pub struct ControlExporter { /* private fields */ }
Expand description

Exporter for internal controls master data.

Implementations§

Source§

impl ControlExporter

Source

pub fn new(output_dir: impl AsRef<Path>) -> Self

Create a new control exporter.

Source

pub fn export_all( &self, controls: &[InternalControl], registry: &ControlMappingRegistry, sod_conflicts: &[SodConflictPair], sod_rules: &[SodRule], ) -> SynthResult<ExportSummary>

Export all control master data.

Creates the following CSV files:

  • internal_controls.csv
  • control_account_mappings.csv
  • control_process_mappings.csv
  • control_threshold_mappings.csv
  • control_doctype_mappings.csv
  • sod_conflict_pairs.csv
  • sod_rules.csv
  • coso_control_mapping.csv
Source

pub fn export_controls( &self, controls: &[InternalControl], ) -> SynthResult<usize>

Export internal control definitions.

Source

pub fn export_account_mappings( &self, mappings: &[ControlAccountMapping], ) -> SynthResult<usize>

Export control-to-account mappings.

Source

pub fn export_process_mappings( &self, mappings: &[ControlProcessMapping], ) -> SynthResult<usize>

Export control-to-process mappings.

Source

pub fn export_threshold_mappings( &self, mappings: &[ControlThresholdMapping], ) -> SynthResult<usize>

Export control-to-threshold mappings.

Source

pub fn export_doctype_mappings( &self, mappings: &[ControlDocTypeMapping], ) -> SynthResult<usize>

Export control-to-document type mappings.

Source

pub fn export_sod_conflicts( &self, conflicts: &[SodConflictPair], ) -> SynthResult<usize>

Export SoD conflict pairs.

Source

pub fn export_sod_rules(&self, rules: &[SodRule]) -> SynthResult<usize>

Export SoD rules.

Source

pub fn export_coso_mapping( &self, controls: &[InternalControl], ) -> SynthResult<usize>

Export COSO control mapping.

Creates a detailed mapping of controls to COSO components and principles. Each row represents one principle mapped to a control.

Source

pub fn export_standard(&self) -> SynthResult<ExportSummary>

Export standard control master data.

This is a convenience method that exports standard controls, mappings, and SoD definitions.

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