pub struct ScanProfile {
pub name: String,
pub description: String,
pub scan_intensity: ScanIntensity,
pub timeout_secs: u32,
pub rate_limit_rps: u32,
pub concurrent_workers: u32,
pub plugins_enabled: Vec<String>,
pub lua_scripts_enabled: Vec<String>,
pub event_subscriptions: Vec<String>,
pub options: HashMap<String, String>,
}Expand description
Scan profile configuration
Fields§
§name: String§description: String§scan_intensity: ScanIntensity§timeout_secs: u32§rate_limit_rps: u32§concurrent_workers: u32§plugins_enabled: Vec<String>§lua_scripts_enabled: Vec<String>§event_subscriptions: Vec<String>§options: HashMap<String, String>Implementations§
Source§impl ScanProfile
impl ScanProfile
Sourcepub fn enterprise() -> Self
pub fn enterprise() -> Self
Creates enterprise profile
Sourcepub fn aggressive() -> Self
pub fn aggressive() -> Self
Creates aggressive scanning profile
Sourcepub fn custom(name: impl Into<String>, intensity: ScanIntensity) -> Self
pub fn custom(name: impl Into<String>, intensity: ScanIntensity) -> Self
Creates custom profile
pub fn with_description(self, desc: impl Into<String>) -> Self
pub fn with_timeout(self, secs: u32) -> Self
pub fn with_rate_limit(self, rps: u32) -> Self
pub fn with_workers(self, count: u32) -> Self
pub fn add_plugin(self, plugin_id: impl Into<String>) -> Self
pub fn add_script(self, script_id: impl Into<String>) -> Self
pub fn add_subscription(self, event: impl Into<String>) -> Self
pub fn add_option( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ScanProfile
impl Clone for ScanProfile
Source§fn clone(&self) -> ScanProfile
fn clone(&self) -> ScanProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScanProfile
impl Debug for ScanProfile
Source§impl Default for ScanProfile
Enterprise profile - Compliance-focused
impl Default for ScanProfile
Enterprise profile - Compliance-focused
Source§impl<'de> Deserialize<'de> for ScanProfile
impl<'de> Deserialize<'de> for ScanProfile
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 ScanProfile
impl RefUnwindSafe for ScanProfile
impl Send for ScanProfile
impl Sync for ScanProfile
impl Unpin for ScanProfile
impl UnsafeUnpin for ScanProfile
impl UnwindSafe for ScanProfile
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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