ServerPreferences

Struct ServerPreferences 

Source
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.

Trait Implementations§

Source§

impl<'input> Debug for ServerPreferences<'input>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'input> Freeze for ServerPreferences<'input>

§

impl<'input> RefUnwindSafe for ServerPreferences<'input>

§

impl<'input> Send for ServerPreferences<'input>

§

impl<'input> Sync for ServerPreferences<'input>

§

impl<'input> Unpin for ServerPreferences<'input>

§

impl<'input> UnwindSafe for ServerPreferences<'input>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.