pub struct AboutMetadataBuilder(/* private fields */);
Expand description

A builder type for AboutMetadata.

Implementations§

source§

impl AboutMetadataBuilder

source

pub fn new() -> Self

source

pub fn with_cargo_metadata() -> Self

Creates AboutMetadataBuilder with Cargo metadata. See AboutMetadata::from_cargo_metadata for more details.

source

pub fn name<S: Into<String>>(self, name: Option<S>) -> Self

Sets the application name.

source

pub fn version<S: Into<String>>(self, version: Option<S>) -> Self

Sets the application version.

source

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 version in parentheses.
source

pub fn authors(self, authors: Option<Vec<String>>) -> Self

Sets the authors of the application.

§Platform-specific
  • macOS: Unsupported.
source

pub fn comments<S: Into<String>>(self, comments: Option<S>) -> Self

Application comments.

§Platform-specific
  • macOS: Unsupported.
source

pub fn copyright<S: Into<String>>(self, copyright: Option<S>) -> Self

Sets the copyright of the application.

source

pub fn license<S: Into<String>>(self, license: Option<S>) -> Self

Sets the license of the application.

§Platform-specific
  • macOS: Unsupported.
source

pub fn website<S: Into<String>>(self, website: Option<S>) -> Self

Sets the application website.

§Platform-specific
  • macOS: Unsupported.
source

pub fn website_label<S: Into<String>>(self, website_label: Option<S>) -> Self

Sets the website label.

§Platform-specific
  • macOS: Unsupported.
source

pub fn credits<S: Into<String>>(self, credits: Option<S>) -> Self

Sets the credits.

§Platform-specific
  • Windows / Linux: Unsupported.
source

pub fn icon(self, icon: Option<Icon>) -> Self

Sets the application icon.

§Platform-specific
  • Windows: Unsupported.
source

pub fn build(self) -> AboutMetadata

Construct the final AboutMetadata

Trait Implementations§

source§

impl Clone for AboutMetadataBuilder

source§

fn clone(&self) -> AboutMetadataBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AboutMetadataBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AboutMetadataBuilder

source§

fn default() -> AboutMetadataBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.