pub struct SecurityConfig {
pub check_prompt_injection: bool,
pub check_sql_injection: bool,
pub check_command_injection: bool,
pub check_xss: bool,
pub check_secrets: bool,
pub check_data_privacy: bool,
pub check_compliance: bool,
pub compliance_standards: Vec<ComplianceStandard>,
pub custom_secret_patterns: Vec<String>,
}Expand description
Security scanner configuration
Fields§
§check_prompt_injection: boolEnable prompt injection detection
check_sql_injection: boolEnable SQL injection detection
check_command_injection: boolEnable command injection detection
check_xss: boolEnable XSS detection
check_secrets: boolEnable secret scanning
check_data_privacy: boolEnable data privacy checks
check_compliance: boolEnable compliance checks
compliance_standards: Vec<ComplianceStandard>Required compliance standards
custom_secret_patterns: Vec<String>Custom secret patterns (regex)
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
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 SecurityConfig
impl Debug for SecurityConfig
Source§impl Default for SecurityConfig
impl Default for SecurityConfig
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
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 SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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