pub struct AboutMetadataBuilder(/* private fields */);
Expand description
A builder type for AboutMetadata
.
Implementations§
Source§impl AboutMetadataBuilder
impl AboutMetadataBuilder
pub fn new() -> AboutMetadataBuilder
Sourcepub fn name<S>(self, name: Option<S>) -> AboutMetadataBuilder
pub fn name<S>(self, name: Option<S>) -> AboutMetadataBuilder
Sets the application name.
Sourcepub fn version<S>(self, version: Option<S>) -> AboutMetadataBuilder
pub fn version<S>(self, version: Option<S>) -> AboutMetadataBuilder
Sets the application version.
Sourcepub fn short_version<S>(self, short_version: Option<S>) -> AboutMetadataBuilder
pub fn short_version<S>(self, short_version: Option<S>) -> AboutMetadataBuilder
Sets the short version, e.g. “1.0”.
§Platform-specific
- Windows / Linux: Appended to the end of
version
in parentheses.
Sourcepub fn comments<S>(self, comments: Option<S>) -> AboutMetadataBuilder
pub fn comments<S>(self, comments: Option<S>) -> AboutMetadataBuilder
Sourcepub fn copyright<S>(self, copyright: Option<S>) -> AboutMetadataBuilder
pub fn copyright<S>(self, copyright: Option<S>) -> AboutMetadataBuilder
Sets the copyright of the application.
Sourcepub fn license<S>(self, license: Option<S>) -> AboutMetadataBuilder
pub fn license<S>(self, license: Option<S>) -> AboutMetadataBuilder
Sourcepub fn website<S>(self, website: Option<S>) -> AboutMetadataBuilder
pub fn website<S>(self, website: Option<S>) -> AboutMetadataBuilder
Sourcepub fn website_label<S>(self, website_label: Option<S>) -> AboutMetadataBuilder
pub fn website_label<S>(self, website_label: Option<S>) -> AboutMetadataBuilder
Sourcepub fn credits<S>(self, credits: Option<S>) -> AboutMetadataBuilder
pub fn credits<S>(self, credits: Option<S>) -> AboutMetadataBuilder
Sourcepub fn icon(self, icon: Option<Icon>) -> AboutMetadataBuilder
pub fn icon(self, icon: Option<Icon>) -> AboutMetadataBuilder
Sourcepub fn build(self) -> AboutMetadata
pub fn build(self) -> AboutMetadata
Construct the final AboutMetadata
Trait Implementations§
Source§impl Clone for AboutMetadataBuilder
impl Clone for AboutMetadataBuilder
Source§fn clone(&self) -> AboutMetadataBuilder
fn clone(&self) -> AboutMetadataBuilder
Returns a copy of the value. Read more
1.0.0 · 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 AboutMetadataBuilder
impl Debug for AboutMetadataBuilder
Source§impl Default for AboutMetadataBuilder
impl Default for AboutMetadataBuilder
Source§fn default() -> AboutMetadataBuilder
fn default() -> AboutMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AboutMetadataBuilder
impl RefUnwindSafe for AboutMetadataBuilder
impl Send for AboutMetadataBuilder
impl !Sync for AboutMetadataBuilder
impl Unpin for AboutMetadataBuilder
impl UnwindSafe for AboutMetadataBuilder
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