pub struct ServerPreferences<'input> {
pub whoami: Cow<'input, str>,
pub scan_name: Option<Cow<'input, str>>,
pub scan_description: Cow<'input, str>,
pub description: Option<Cow<'input, str>>,
pub target: Vec<&'input str>,
pub port_range: &'input str,
pub scan_start_timestamp_seconds: Timestamp,
pub scan_end_timestamp_seconds: Option<Timestamp>,
pub plugin_set: BTreeSet<u32>,
pub name: Cow<'input, str>,
pub discovery_mode: Option<&'input str>,
pub others: HashMap<&'input str, Option<Cow<'input, str>>>,
}
Expand description
Represents the <ServerPreferences>
element, containing detailed
settings for the Nessus scanner’s behavior during the scan.
Fields§
§whoami: Cow<'input, str>
The user who launched the scan
scan_name: Option<Cow<'input, str>>
The user-defined name for the scan
scan_description: Cow<'input, str>
The user-defined description for the scan
description: Option<Cow<'input, str>>
An alternative description field for the scan
target: Vec<&'input str>
A list of targets for the scan (e.g., IP addresses, CIDR ranges).
port_range: &'input str
The port range to be scanned (e.g., “1-65535”, “default”, “all”).
scan_start_timestamp_seconds: Timestamp
The timestamp when the scan was initiated.
scan_end_timestamp_seconds: Option<Timestamp>
The timestamp when the scan was completed.
plugin_set: BTreeSet<u32>
The set of all plugin IDs that were active for the scan.
name: Cow<'input, str>
The name of the scan policy (e.g., “Advanced Scan”).
discovery_mode: Option<&'input str>
The discovery mode used for the scan (e.g., “portscan_common”, “custom”).
others: HashMap<&'input str, Option<Cow<'input, str>>>
A map to hold any other server preferences not explicitly parsed into other fields. The key is the preference name.