[][src]Struct super_analyzer_core::static_analysis::manifest::Manifest

pub struct Manifest {
    code: String,
    package: String,
    label: String,
    description: String,
    allows_backup: bool,
    has_code: bool,
    large_heap: bool,
    install_location: InstallLocation,
    permissions: PermissionChecklist,
    debug: bool,
    min_sdk: u32,
    target_sdk: Option<u32>,
    version_number: u32,
    version_str: String,
}

Manifest analysis representation structure.

Fields

code: Stringpackage: Stringlabel: Stringdescription: Stringallows_backup: boolhas_code: boollarge_heap: boolinstall_location: InstallLocationpermissions: PermissionChecklistdebug: boolmin_sdk: u32target_sdk: Option<u32>version_number: u32version_str: String

Methods

impl Manifest[src]

pub fn load<P: AsRef<Path>, S: AsRef<str>>(
    path: P,
    config: &Config,
    package: S,
    results: &mut Results
) -> Result<Self, Error>
[src]

Loads the given manifest in memory and analyzes it.

fn parse_manifest_attributes<A>(&mut self, attributes: A) where
    A: IntoIterator<Item = OwnedAttribute>, 
[src]

fn parse_sdk_attributes<A>(&mut self, attributes: A) where
    A: IntoIterator<Item = OwnedAttribute>, 
[src]

fn parse_application_attributes<A, S>(
    &mut self,
    attributes: A,
    config: &Config,
    package: S
) where
    A: IntoIterator<Item = OwnedAttribute>,
    S: AsRef<str>, 
[src]

fn parse_permission_attributes<A>(
    &mut self,
    attributes: A,
    config: &Config,
    results: &mut Results
) where
    A: IntoIterator<Item = OwnedAttribute>, 
[src]

fn check_exported_attributes<A>(
    &mut self,
    tag: &str,
    attributes: A,
    config: &Config,
    results: &mut Results
) where
    A: IntoIterator<Item = OwnedAttribute>, 
[src]

fn set_code<S: Into<String>>(&mut self, code: S)[src]

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

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

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

pub fn version_number(&self) -> u32[src]

fn set_version_number(&mut self, version_number: u32)[src]

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

fn set_version_str<S: Into<String>>(&mut self, version_str: S)[src]

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

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

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

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

pub fn min_sdk(&self) -> u32[src]

pub fn set_min_sdk(&mut self, min_sdk: u32)[src]

pub fn target_sdk(&self) -> Option<u32>[src]

pub fn set_target_sdk(&mut self, target_sdk: u32)[src]

fn set_has_code(&mut self)[src]

pub fn allows_backup(&self) -> bool[src]

fn set_allows_backup(&mut self)[src]

pub fn needs_large_heap(&self) -> bool[src]

fn set_large_heap(&mut self)[src]

fn set_install_location(&mut self, install_location: InstallLocation)[src]

pub fn is_debug(&self) -> bool[src]

fn set_debug(&mut self)[src]

pub fn permission_checklist(&self) -> &PermissionChecklist[src]

Trait Implementations

impl Default for Manifest[src]

impl Debug for Manifest[src]

Auto Trait Implementations

impl Send for Manifest

impl Sync for Manifest

impl Unpin for Manifest

impl UnwindSafe for Manifest

impl RefUnwindSafe for Manifest

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