Struct muda::AboutMetadataBuilder
source · pub struct AboutMetadataBuilder(/* private fields */);Expand description
A builder type for AboutMetadata.
Implementations§
source§impl AboutMetadataBuilder
impl AboutMetadataBuilder
pub fn new() -> Self
sourcepub fn with_cargo_metadata() -> Self
pub fn with_cargo_metadata() -> Self
Creates AboutMetadataBuilder with Cargo metadata.
See AboutMetadata::from_cargo_metadata for more details.
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
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 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