#[non_exhaustive]pub struct OptionalTasksPage {
pub title: Var<Txt>,
pub info: Var<Txt>,
pub message: Var<Txt>,
pub tasks: Vec<OptionalTask>,
pub groups: Vec<OptionalTaskGroup>,
}Expand description
Page for reviewing and enabling optional setup tasks.
The tasks represented here do not need to match a SetupTask each, usually
the entire page configures a single SetupTask.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Var<Txt>Page title.
This is the Page::title value.
info: Var<Txt>Page info.
This is the Page::info value.
message: Var<Txt>Message shown at the top of the page content.
tasks: Vec<OptionalTask>List of optional tasks.
Tasks are presented as a list of check boxes, in the same order as this vec. In case of grouping the first task of that group defines the group position.
groups: Vec<OptionalTaskGroup>Info about tasks groups.
Groups are presented as a check box header that can enable or disable all child items at the same time.
Implementations§
Source§impl OptionalTasksPage
Common task pages.
impl OptionalTasksPage
Common task pages.
Note that to support pluralization based on tasks count the title, info and message vars are set
to a marker on new_*, and are resolved only on build.
Sourcepub fn new_generic() -> Self
pub fn new_generic() -> Self
New generic “Select Adicional Tasks” page.
Sourcepub fn new_associate_files() -> Self
pub fn new_associate_files() -> Self
New “Associate File Types” page.
Sourcepub fn new_additional_shortcuts() -> Self
pub fn new_additional_shortcuts() -> Self
New “Additional Shortcuts” page.
Note that at least one shortcut should always be created. On Windows for example, an
app is not registered to show notifications if it does not have a start menu shortcut.
This page is for extra shortcuts, like OptionalTask::new_create_desktop_shortcut.
Auto Trait Implementations§
impl !Freeze for OptionalTasksPage
impl !RefUnwindSafe for OptionalTasksPage
impl !Unpin for OptionalTasksPage
impl !UnwindSafe for OptionalTasksPage
impl Send for OptionalTasksPage
impl Sync for OptionalTasksPage
impl UnsafeUnpin for OptionalTasksPage
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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