pub struct Config {
pub target: String,
pub intensity: ScanIntensity,
pub timeout_secs: u64,
pub num_threads: u32,
pub rate_limit_rps: u32,
pub aggressive: bool,
pub max_payload_size: usize,
pub options: HashMap<String, String>,
pub verify_ssl: bool,
pub connect_timeout_secs: u64,
}Expand description
Historical scan configuration retained for compatibility.
Fields§
§target: StringTarget URL/IP to scan
intensity: ScanIntensityScan intensity (light, normal, aggressive, stealth)
timeout_secs: u64Scan timeout in seconds (must be > 0)
num_threads: u32Maximum concurrent workers (must be > 0)
rate_limit_rps: u32Requests per second rate limit (>= 0)
aggressive: boolEnable aggressive scanning
max_payload_size: usizeMaximum payload size in bytes
options: HashMap<String, String>Custom options
verify_ssl: boolEnable SSL verification
connect_timeout_secs: u64Connection timeout in seconds
Implementations§
Source§impl Config
impl Config
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validates configuration
Sourcepub fn builder(target: impl Into<String>) -> ConfigBuilder
pub fn builder(target: impl Into<String>) -> ConfigBuilder
Creates a builder for fluent configuration
Sourcepub fn from_toml(path: impl AsRef<Path>) -> Result<Self, ConfigError>
pub fn from_toml(path: impl AsRef<Path>) -> Result<Self, ConfigError>
Loads configuration from TOML file with environment overrides
Sourcepub fn apply_env_overrides(&mut self) -> Result<(), ConfigError>
pub fn apply_env_overrides(&mut self) -> Result<(), ConfigError>
Applies environment variable overrides
Sourcepub fn to_toml(&self) -> Result<String, ConfigError>
pub fn to_toml(&self) -> Result<String, ConfigError>
Exports configuration as TOML string
Sourcepub fn to_json(&self) -> Result<String, ConfigError>
pub fn to_json(&self) -> Result<String, ConfigError>
Exports configuration as JSON string
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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