pub struct PrivacyWizard {
pub simulator_id: Uuid,
pub step: PrivacyWizardStep,
pub all_apps: Vec<InstalledApp>,
pub app_index: i64,
pub app_scroll_offset: i64,
pub action_index: i64,
pub permission_index: i64,
pub show_system: bool,
pub error: Option<String>,
}Fields§
§simulator_id: Uuid§step: PrivacyWizardStep§all_apps: Vec<InstalledApp>§app_index: i64§app_scroll_offset: i64§action_index: i64§permission_index: i64§show_system: bool§error: Option<String>Implementations§
Source§impl PrivacyWizard
impl PrivacyWizard
pub fn new(simulator_id: Uuid) -> Self
Sourcepub fn app_viewport(rows: i64) -> i64
pub fn app_viewport(rows: i64) -> i64
Only the app list scrolls. PrivacyAction/PrivacyPermission lists fit any viewport and the view auto-centers their focus at render time.
pub fn apps(&self) -> Vec<&InstalledApp>
pub fn selected_app(&self) -> Option<&InstalledApp>
pub fn selected_action(&self) -> Option<PrivacyAction>
pub fn selected_permission(&self) -> Option<PrivacyPermission>
Trait Implementations§
Source§impl Clone for PrivacyWizard
impl Clone for PrivacyWizard
Source§fn clone(&self) -> PrivacyWizard
fn clone(&self) -> PrivacyWizard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivacyWizard
impl Debug for PrivacyWizard
Source§impl PartialEq for PrivacyWizard
impl PartialEq for PrivacyWizard
impl StructuralPartialEq for PrivacyWizard
Auto Trait Implementations§
impl Freeze for PrivacyWizard
impl RefUnwindSafe for PrivacyWizard
impl Send for PrivacyWizard
impl Sync for PrivacyWizard
impl Unpin for PrivacyWizard
impl UnsafeUnpin for PrivacyWizard
impl UnwindSafe for PrivacyWizard
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