Item

Struct Item 

Source
pub struct Item<'input> {
Show 27 fields pub plugin_id: u32, pub plugin_name: Cow<'input, str>, pub port: u16, pub protocol: Protocol, pub svc_name: &'input str, pub severity: Level, pub plugin_family: &'input str, pub plugin_output: Option<Cow<'input, str>>, pub solution: Cow<'input, str>, pub script_version: &'input str, pub risk_factor: Level, pub plugin_type: PluginType, pub plugin_publication_date: Date, pub plugin_modification_date: Date, pub fname: &'input str, pub description: Cow<'input, str>, pub exploit_available: bool, pub exploited_by_nessus: bool, pub exploitability_ease: Option<&'input str>, pub agent: Option<&'input str>, pub cvss_vector: Option<&'input str>, pub cvss_temporal_vector: Option<&'input str>, pub cvss3_vector: Option<&'input str>, pub cvss3_temporal_vector: Option<&'input str>, pub cvss4_vector: Option<&'input str>, pub cvss4_threat_vector: Option<&'input str>, pub others: HashMap<&'input str, Vec<Cow<'input, str>>>,
}
Expand description

Represents a <ReportItem> element, which is a single finding or piece of information reported by a Nessus plugin for a specific host and port.

Fields§

§plugin_id: u32

The unique identifier of the Nessus plugin that generated this item.

§plugin_name: Cow<'input, str>

The name of the plugin.

§port: u16

The port number associated with this finding.

§protocol: Protocol

The protocol associated with the port (TCP, UDP, ICMP).

§svc_name: &'input str

The service name discovered on the port (e.g., “www”, “general”).

§severity: Level

The severity level of the finding.

§plugin_family: &'input str

The family that the plugin belongs to (e.g., “Windows”, “CGI abuses”).

§plugin_output: Option<Cow<'input, str>>

The raw output from the plugin, which often contains detailed evidence.

§solution: Cow<'input, str>

The suggested solution or remediation for the finding.

§script_version: &'input str

The version of the plugin script.

§risk_factor: Level

The risk factor associated with the finding (e.g., “High”, “None”).

§plugin_type: PluginType

The type of the plugin (e.g., remote, local).

§plugin_publication_date: Date

The date when the plugin was first published.

§plugin_modification_date: Date

The date when the plugin was last modified.

§fname: &'input str

The filename of the plugin script (e.g., “example.nasl”).

§description: Cow<'input, str>

A detailed description of the vulnerability or finding.

§exploit_available: bool

A boolean indicating if a known exploit for the vulnerability exists.

§exploited_by_nessus: bool

A boolean indicating if the vulnerability was exploited by Nessus during the scan.

§exploitability_ease: Option<&'input str>

A description of how easy it is to exploit the vulnerability.

§agent: Option<&'input str>

The agent type the plugin is applicable to (“all”, “unix”, “windows”).

§cvss_vector: Option<&'input str>

The CVSSv2 vector string.

§cvss_temporal_vector: Option<&'input str>

The CVSSv2 temporal vector string.

§cvss3_vector: Option<&'input str>

The CVSSv3 vector string.

§cvss3_temporal_vector: Option<&'input str>

The CVSSv3 temporal vector string.

§cvss4_vector: Option<&'input str>

The CVSSv4 vector string.

§cvss4_threat_vector: Option<&'input str>

The CVSSv4 threat vector string.

§others: HashMap<&'input str, Vec<Cow<'input, str>>>

A map to hold any other elements from the ReportItem not explicitly parsed into other fields. The key is the XML tag name.

Trait Implementations§

Source§

impl<'input> Debug for Item<'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 Item<'input>

§

impl<'input> RefUnwindSafe for Item<'input>

§

impl<'input> Send for Item<'input>

§

impl<'input> Sync for Item<'input>

§

impl<'input> Unpin for Item<'input>

§

impl<'input> UnwindSafe for Item<'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.