pub struct About { /* private fields */ }Expand description
The app’s About content (docs/settings.md): a window on the desktops, the toolkit’s About dialog on GTK, a page inside Settings on mobile and Windows.
Implementations§
Source§impl About
impl About
Sourcepub fn from_manifest() -> Self
pub fn from_manifest() -> Self
Name, version and build from the app identity day build exports (Day.toml
[app]), falling back to the window’s app name and WindowOptions::version at run
time.
Sourcepub fn name<M>(self, t: impl IntoText<M>) -> Self
pub fn name<M>(self, t: impl IntoText<M>) -> Self
The display name (default: the app title from the manifest, else the window title).
pub fn version(self, v: impl Into<String>) -> Self
pub fn build(self, b: impl Into<String>) -> Self
pub fn copyright<M>(self, t: impl IntoText<M>) -> Self
Sourcepub fn icon(self, icon: impl Into<ImageName>) -> Self
pub fn icon(self, icon: impl Into<ImageName>) -> Self
The app icon as a bundled image (res::images::icon).
Sourcepub fn website(self, url: impl Into<String>) -> Self
pub fn website(self, url: impl Into<String>) -> Self
The app’s website, titled from Day’s catalog (day_about_website).
Sourcepub fn source(self, url: impl Into<String>) -> Self
pub fn source(self, url: impl Into<String>) -> Self
The app’s source code, titled from Day’s catalog (day_about_source).
Sourcepub fn privacy(self, url: impl Into<String>) -> Self
pub fn privacy(self, url: impl Into<String>) -> Self
The privacy policy URL: a known slot (the stores ask for it, GTK has a field).
Sourcepub fn credits<M>(self, t: impl IntoText<M>) -> Self
pub fn credits<M>(self, t: impl IntoText<M>) -> Self
Acknowledgements, as a text block (Markdown where the toolkit renders it).
Sourcepub fn licenses<M>(self, t: impl IntoText<M>) -> Self
pub fn licenses<M>(self, t: impl IntoText<M>) -> Self
Third-party license notices, as one text block.
Sourcepub fn custom<P: Piece>(self, build: impl Fn() -> P + 'static) -> Self
pub fn custom<P: Piece>(self, build: impl Fn() -> P + 'static) -> Self
A bespoke piece that replaces the composed About body.
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
The resolved display name.
Sourcepub fn version_line(&self) -> Option<String>
pub fn version_line(&self) -> Option<String>
The version line, localized (“Version 2.3.0 (14)”).
pub fn version_value(&self) -> Option<&str>
pub fn build_value(&self) -> Option<&str>
pub fn links(&self) -> &[(TextSource, String)]
pub fn privacy_url(&self) -> Option<&str>
pub fn icon_name(&self) -> Option<&ImageName>
pub fn tagline_text(&self) -> Option<String>
pub fn copyright_text(&self) -> Option<String>
pub fn credits_text(&self) -> Option<String>
pub fn licenses_text(&self) -> Option<String>
pub fn custom_piece(&self) -> Option<AnyPiece>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for About
impl !Send for About
impl !Sync for About
impl !UnwindSafe for About
impl Freeze for About
impl Unpin for About
impl UnsafeUnpin for About
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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