pub struct ComplianceSystem {
pub matrix: IsoMatrix,
pub status: VerificationStatus,
}Expand description
Combined system that reads both files
Fields§
§matrix: IsoMatrix§status: VerificationStatusImplementations§
Source§impl ComplianceSystem
impl ComplianceSystem
Sourcepub fn get_all_requirements(&self) -> Vec<IsoRequirement>
pub fn get_all_requirements(&self) -> Vec<IsoRequirement>
Get all requirements with complete info (definition + status)
Sourcepub fn get_requirement_info(&self, id: &str) -> Option<RequirementInfo>
pub fn get_requirement_info(&self, id: &str) -> Option<RequirementInfo>
Get requirement info combining matrix definition + current status
Sourcepub fn get_section_requirements(
&self,
section_id: &str,
) -> Option<Vec<IsoRequirement>>
pub fn get_section_requirements( &self, section_id: &str, ) -> Option<Vec<IsoRequirement>>
Get requirements for a specific section with status
Sourcepub fn calculate_compliance_stats(&self) -> ComplianceStats
pub fn calculate_compliance_stats(&self) -> ComplianceStats
Calculate compliance statistics from current status
Sourcepub fn get_unimplemented_requirements(&self) -> Vec<IsoRequirement>
pub fn get_unimplemented_requirements(&self) -> Vec<IsoRequirement>
Get requirements that need implementation (level 0)
Sourcepub fn get_partially_implemented_requirements(&self) -> Vec<IsoRequirement>
pub fn get_partially_implemented_requirements(&self) -> Vec<IsoRequirement>
Get requirements that need better verification (level 1-2)
Sourcepub fn get_compliant_requirements(&self) -> Vec<IsoRequirement>
pub fn get_compliant_requirements(&self) -> Vec<IsoRequirement>
Get fully compliant requirements (level 4)
Sourcepub fn update_requirement_status(
&mut self,
id: &str,
new_status: RequirementStatus,
) -> Result<()>
pub fn update_requirement_status( &mut self, id: &str, new_status: RequirementStatus, ) -> Result<()>
Update verification status for a requirement
Sourcepub fn save_status(&self, path: &str) -> Result<()>
pub fn save_status(&self, path: &str) -> Result<()>
Save status file (matrix is never saved - it’s immutable)
Trait Implementations§
Source§impl Clone for ComplianceSystem
impl Clone for ComplianceSystem
Source§fn clone(&self) -> ComplianceSystem
fn clone(&self) -> ComplianceSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComplianceSystem
impl RefUnwindSafe for ComplianceSystem
impl Send for ComplianceSystem
impl Sync for ComplianceSystem
impl Unpin for ComplianceSystem
impl UnwindSafe for ComplianceSystem
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,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more