pub struct ComplianceIssue {
pub issue: Issue,
pub regulation: Regulation,
pub article: Option<String>,
pub requirement: String,
pub penalty: Option<String>,
pub mandatory: bool,
pub grace_period: Option<String>,
}Expand description
Compliance-specific issue
Fields§
§issue: IssueBase issue
regulation: RegulationRegulation violated
article: Option<String>Specific article/section violated
requirement: StringLegal requirement text
penalty: Option<String>Potential fine/penalty
mandatory: boolRequired by law
grace_period: Option<String>Grace period for compliance
Implementations§
Source§impl ComplianceIssue
impl ComplianceIssue
Sourcepub fn new(
severity: Severity,
regulation: Regulation,
title: impl Into<String>,
description: impl Into<String>,
requirement: impl Into<String>,
) -> Self
pub fn new( severity: Severity, regulation: Regulation, title: impl Into<String>, description: impl Into<String>, requirement: impl Into<String>, ) -> Self
Create a new compliance issue
Sourcepub fn with_article(self, article: impl Into<String>) -> Self
pub fn with_article(self, article: impl Into<String>) -> Self
Set article/section
Sourcepub fn with_penalty(self, penalty: impl Into<String>) -> Self
pub fn with_penalty(self, penalty: impl Into<String>) -> Self
Set penalty information
Trait Implementations§
Source§impl Clone for ComplianceIssue
impl Clone for ComplianceIssue
Source§fn clone(&self) -> ComplianceIssue
fn clone(&self) -> ComplianceIssue
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 moreSource§impl Debug for ComplianceIssue
impl Debug for ComplianceIssue
Source§impl<'de> Deserialize<'de> for ComplianceIssue
impl<'de> Deserialize<'de> for ComplianceIssue
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
Auto Trait Implementations§
impl Freeze for ComplianceIssue
impl RefUnwindSafe for ComplianceIssue
impl Send for ComplianceIssue
impl Sync for ComplianceIssue
impl Unpin for ComplianceIssue
impl UnwindSafe for ComplianceIssue
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