pub struct Profile {Show 14 fields
pub name: String,
pub description: String,
pub strict: bool,
pub recursive: bool,
pub ci: bool,
pub verbose: bool,
pub skip_comments: bool,
pub fix_hint: bool,
pub no_malware_scan: bool,
pub deep_scan: bool,
pub min_confidence: String,
pub format: Option<String>,
pub scan_type: Option<String>,
pub disabled_rules: Vec<String>,
}Expand description
A named scan profile containing preset configurations
Fields§
§name: String§description: String§strict: bool§recursive: bool§ci: bool§verbose: bool§skip_comments: bool§fix_hint: bool§no_malware_scan: bool§deep_scan: bool§min_confidence: String§format: Option<String>§scan_type: Option<String>§disabled_rules: Vec<String>Implementations§
Source§impl Profile
impl Profile
Sourcepub fn apply_to_config(&self, config: &mut ScanConfig)
pub fn apply_to_config(&self, config: &mut ScanConfig)
Apply profile settings to effective config
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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