#[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() -> OptionalTasksPage
pub fn new_generic() -> OptionalTasksPage
New generic “Select Adicional Tasks” page.
Sourcepub fn new_associate_files() -> OptionalTasksPage
pub fn new_associate_files() -> OptionalTasksPage
New “Associate File Types” page.
Sourcepub fn new_additional_shortcuts() -> OptionalTasksPage
pub fn new_additional_shortcuts() -> OptionalTasksPage
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§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