pub struct PackageInfo {Show 14 fields
pub package_name: String,
pub version_name: Option<String>,
pub version_code: Option<i32>,
pub install_time: Option<String>,
pub update_time: Option<String>,
pub uid: Option<i32>,
pub target_sdk: Option<i32>,
pub min_sdk: Option<i32>,
pub flags: Vec<String>,
pub permissions: Vec<String>,
pub activities: Vec<String>,
pub services: Vec<String>,
pub install_source: Option<String>,
pub raw_data: Option<String>,
}
Expand description
包信息结构体
Fields§
§package_name: String
§version_name: Option<String>
§version_code: Option<i32>
§install_time: Option<String>
§update_time: Option<String>
§uid: Option<i32>
§target_sdk: Option<i32>
§min_sdk: Option<i32>
§flags: Vec<String>
§permissions: Vec<String>
§activities: Vec<String>
§services: Vec<String>
§install_source: Option<String>
§raw_data: Option<String>
Implementations§
Source§impl PackageInfo
impl PackageInfo
Trait Implementations§
Source§impl Clone for PackageInfo
impl Clone for PackageInfo
Source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PackageInfo
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more