pub struct PackageInfoBuilder { /* private fields */ }Expand description
包信息构建器
Implementations§
Source§impl PackageInfoBuilder
impl PackageInfoBuilder
pub fn new(package_name: &str) -> Self
pub fn with_version_name(self, version: &str) -> Self
pub fn with_version_code(self, code: i32) -> Self
pub fn with_install_time(self, time: &str) -> Self
pub fn with_update_time(self, time: &str) -> Self
pub fn with_uid(self, uid: i32) -> Self
pub fn with_target_sdk(self, sdk: i32) -> Self
pub fn with_min_sdk(self, sdk: i32) -> Self
pub fn add_flag(self, flag: &str) -> Self
pub fn add_permission(self, permission: &str) -> Self
pub fn add_activity(self, activity: &str) -> Self
pub fn add_service(self, service: &str) -> Self
pub fn with_install_source(self, source: &str) -> Self
pub fn with_raw_data(self, data: &str) -> Self
pub fn build(self) -> PackageInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PackageInfoBuilder
impl RefUnwindSafe for PackageInfoBuilder
impl Send for PackageInfoBuilder
impl Sync for PackageInfoBuilder
impl Unpin for PackageInfoBuilder
impl UnwindSafe for PackageInfoBuilder
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> 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