pub struct ComplianceGraphBuilder { /* private fields */ }Expand description
Builder for compliance regulatory graphs with cross-domain edges.
Implementations§
Source§impl ComplianceGraphBuilder
impl ComplianceGraphBuilder
Sourcepub fn new(config: ComplianceGraphConfig) -> Self
pub fn new(config: ComplianceGraphConfig) -> Self
Creates a new compliance graph builder.
Sourcepub fn add_standards(&mut self, standards: &[StandardNodeInput])
pub fn add_standards(&mut self, standards: &[StandardNodeInput])
Adds standard nodes.
Sourcepub fn add_jurisdictions(&mut self, jurisdictions: &[JurisdictionNodeInput])
pub fn add_jurisdictions(&mut self, jurisdictions: &[JurisdictionNodeInput])
Adds jurisdiction nodes.
Sourcepub fn add_cross_references(&mut self, xrefs: &[CrossReferenceEdgeInput])
pub fn add_cross_references(&mut self, xrefs: &[CrossReferenceEdgeInput])
Adds cross-reference edges between standards.
Sourcepub fn add_supersessions(&mut self, supersessions: &[SupersessionEdgeInput])
pub fn add_supersessions(&mut self, supersessions: &[SupersessionEdgeInput])
Adds supersession edges.
Sourcepub fn add_jurisdiction_mappings(
&mut self,
mappings: &[JurisdictionMappingInput],
)
pub fn add_jurisdiction_mappings( &mut self, mappings: &[JurisdictionMappingInput], )
Adds jurisdiction→standard mapping edges.
Sourcepub fn add_procedures(&mut self, procedures: &[ProcedureNodeInput])
pub fn add_procedures(&mut self, procedures: &[ProcedureNodeInput])
Adds audit procedure nodes and links them to standards.
Sourcepub fn add_findings(&mut self, findings: &[FindingNodeInput])
pub fn add_findings(&mut self, findings: &[FindingNodeInput])
Adds finding nodes and links them to standards, controls, and accounts.
Sourcepub fn add_account_links(&mut self, links: &[AccountLinkInput])
pub fn add_account_links(&mut self, links: &[AccountLinkInput])
Adds GL account nodes and creates GovernedByStandard edges from standards.
Sourcepub fn add_control_links(&mut self, links: &[ControlLinkInput])
pub fn add_control_links(&mut self, links: &[ControlLinkInput])
Adds internal control nodes and creates ImplementsStandard edges.
Sourcepub fn add_filings(&mut self, filings: &[FilingNodeInput])
pub fn add_filings(&mut self, filings: &[FilingNodeInput])
Adds filing nodes with edges to jurisdictions and companies.
Sourcepub fn standard_count(&self) -> usize
pub fn standard_count(&self) -> usize
Returns the number of standard nodes.
Sourcepub fn jurisdiction_count(&self) -> usize
pub fn jurisdiction_count(&self) -> usize
Returns the number of jurisdiction nodes.
Sourcepub fn account_count(&self) -> usize
pub fn account_count(&self) -> usize
Returns the number of account nodes (cross-domain).
Sourcepub fn control_count(&self) -> usize
pub fn control_count(&self) -> usize
Returns the number of control nodes (cross-domain).
Auto Trait Implementations§
impl Freeze for ComplianceGraphBuilder
impl RefUnwindSafe for ComplianceGraphBuilder
impl Send for ComplianceGraphBuilder
impl Sync for ComplianceGraphBuilder
impl Unpin for ComplianceGraphBuilder
impl UnsafeUnpin for ComplianceGraphBuilder
impl UnwindSafe for ComplianceGraphBuilder
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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.