[][src]Struct nessus_xml_parser::Policy

pub struct Policy {
    pub policy_name: String,
    pub policy_comments: String,
    pub server_preferences: ServerPreferences,
    pub plugins_preferences: PluginsPreferences,
    pub family_selection: FamilySelection,
    pub individual_plugin_selection: IndividualPluginSelection,
}

The policy used for the scan

Fields

policy_name: String

Name of the policy

policy_comments: String

Any comments saved with the policy, may be empty

server_preferences: ServerPreferences

A ServerPreferences item, which is a Vec of key-value pairs

plugins_preferences: PluginsPreferences

A PluginsPreferences item, which is a Vec of PluginsPreferencesItems

family_selection: FamilySelection

A list of selected plugin families, as a Vec of FamilyItems

individual_plugin_selection: IndividualPluginSelection

A list of individually-selected plugins, as a Vec of PluginItems

Implementations

impl Policy[src]

pub fn from(policy_xml: Node) -> Result<Self, Error>[src]

Build a Policy from an XML node

Trait Implementations

impl Debug for Policy[src]

impl Default for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.