pub struct AboutMetadataBuilder<'a>(/* private fields */);Available on
desktop only.Expand description
A builder type for AboutMetadata.
Implementations§
Source§impl<'a> AboutMetadataBuilder<'a>
impl<'a> AboutMetadataBuilder<'a>
Sourcepub fn version<S: Into<String>>(self, version: Option<S>) -> Self
pub fn version<S: Into<String>>(self, version: Option<S>) -> Self
Sets the application version.
Sourcepub fn short_version<S: Into<String>>(self, short_version: Option<S>) -> Self
pub fn short_version<S: Into<String>>(self, short_version: Option<S>) -> Self
Sets the short version, e.g. “1.0”.
§Platform-specific
- Windows / Linux: Appended to the end of
versionin parentheses.
Sourcepub fn copyright<S: Into<String>>(self, copyright: Option<S>) -> Self
pub fn copyright<S: Into<String>>(self, copyright: Option<S>) -> Self
Sets the copyright of the application.
Sourcepub fn website_label<S: Into<String>>(self, website_label: Option<S>) -> Self
pub fn website_label<S: Into<String>>(self, website_label: Option<S>) -> Self
Sourcepub fn build(self) -> AboutMetadata<'a>
pub fn build(self) -> AboutMetadata<'a>
Construct the final AboutMetadata
Trait Implementations§
Source§impl<'a> Clone for AboutMetadataBuilder<'a>
impl<'a> Clone for AboutMetadataBuilder<'a>
Source§fn clone(&self) -> AboutMetadataBuilder<'a>
fn clone(&self) -> AboutMetadataBuilder<'a>
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<'a> Debug for AboutMetadataBuilder<'a>
impl<'a> Debug for AboutMetadataBuilder<'a>
Source§impl<'a> Default for AboutMetadataBuilder<'a>
impl<'a> Default for AboutMetadataBuilder<'a>
Source§fn default() -> AboutMetadataBuilder<'a>
fn default() -> AboutMetadataBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for AboutMetadataBuilder<'a>
impl<'a> RefUnwindSafe for AboutMetadataBuilder<'a>
impl<'a> Send for AboutMetadataBuilder<'a>
impl<'a> Sync for AboutMetadataBuilder<'a>
impl<'a> Unpin for AboutMetadataBuilder<'a>
impl<'a> UnsafeUnpin for AboutMetadataBuilder<'a>
impl<'a> UnwindSafe for AboutMetadataBuilder<'a>
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