[][src]Struct super_analyzer_core::results::Results

pub struct Results {
    app_package: String,
    app_label: String,
    app_description: String,
    app_version: String,
    app_version_num: u32,
    app_min_sdk: SdkNumber,
    app_target_sdk: Option<SdkNumber>,
    app_fingerprint: FingerPrint,
    warnings: BTreeSet<Vulnerability>,
    low: BTreeSet<Vulnerability>,
    medium: BTreeSet<Vulnerability>,
    high: BTreeSet<Vulnerability>,
    critical: BTreeSet<Vulnerability>,
}

Results representation structure.

Fields

app_package: String

Application package name.

app_label: String

Application label.

app_description: String

Application description.

app_version: String

Application version string.

app_version_num: u32

Application version number.

app_min_sdk: SdkNumber

Application minimum SDK.

app_target_sdk: Option<SdkNumber>

Target SDK for the application.

app_fingerprint: FingerPrint

Fingerprint of the application,

warnings: BTreeSet<Vulnerability>

List of warnings found in the application.

low: BTreeSet<Vulnerability>

List of the potential low criticality vulnerabilities in the application.

medium: BTreeSet<Vulnerability>

List of the potential medium criticality vulnerabilities in the application.

high: BTreeSet<Vulnerability>

List of the potential high criticality vulnerabilities in the application.

critical: BTreeSet<Vulnerability>

List of the potential critical vulnerabilities in the application.

Methods

impl Results[src]

pub fn init<P: AsRef<Path>>(config: &Config, package: P) -> Result<Self, Error>[src]

Initializes the results structure.

pub fn set_app_package<S: Into<String>>(&mut self, package: S)[src]

Sets the application's package.

pub fn app_package(&self) -> &str[src]

Gets the application package.

pub fn set_app_label<S: Into<String>>(&mut self, label: S)[src]

Sets the application's label.

pub fn set_app_description<S: Into<String>>(&mut self, description: S)[src]

Sets the application description

pub fn set_app_version<S: Into<String>>(&mut self, version: S)[src]

Sets the application version string.

pub fn set_app_version_num(&mut self, version: u32)[src]

Sets the application version number.

pub fn set_app_min_sdk(&mut self, sdk: u32)[src]

Sets the application's minimum SDK number.

pub fn set_app_target_sdk(&mut self, sdk: u32)[src]

Sets the application's target SDK number.

pub fn add_vulnerability(&mut self, vulnerability: Vulnerability)[src]

Adds a vulnerability to the results.

pub fn generate_report<S: AsRef<str>>(
    &self,
    config: &Config,
    package: S
) -> Result<(), Error>
[src]

Generates the report.

Trait Implementations

impl Serialize for Results[src]

Auto Trait Implementations

impl Send for Results

impl Sync for Results

impl Unpin for Results

impl UnwindSafe for Results

impl RefUnwindSafe for Results

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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

type Output = T

Should always be Self