Struct tauri_runtime::menu::AboutMetadata
source · #[non_exhaustive]pub struct AboutMetadata {
pub version: Option<String>,
pub authors: Option<Vec<String>>,
pub comments: Option<String>,
pub copyright: Option<String>,
pub license: Option<String>,
pub website: Option<String>,
pub website_label: Option<String>,
}
Expand description
Application metadata for the MenuItem::About
action.
§Platform-specific
- Windows / macOS / Android / iOS: The metadata is ignored on these platforms.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: Option<String>
The application name.
The authors of the application.
comments: Option<String>
Application comments.
copyright: Option<String>
The copyright of the application.
license: Option<String>
The license of the application.
website: Option<String>
The application website.
website_label: Option<String>
The website label.
Implementations§
source§impl AboutMetadata
impl AboutMetadata
sourcepub fn new() -> Self
pub fn new() -> Self
Creates the default metadata for the MenuItem::About
action, which is just empty.
Defines the application authors.
sourcepub fn copyright(self, copyright: impl Into<String>) -> Self
pub fn copyright(self, copyright: impl Into<String>) -> Self
Defines the application copyright.
sourcepub fn website(self, website: impl Into<String>) -> Self
pub fn website(self, website: impl Into<String>) -> Self
Defines the application’s website link.
sourcepub fn website_label(self, website_label: impl Into<String>) -> Self
pub fn website_label(self, website_label: impl Into<String>) -> Self
Defines the application’s website link name.
Trait Implementations§
source§impl Clone for AboutMetadata
impl Clone for AboutMetadata
source§fn clone(&self) -> AboutMetadata
fn clone(&self) -> AboutMetadata
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 AboutMetadata
impl Debug for AboutMetadata
source§impl Default for AboutMetadata
impl Default for AboutMetadata
source§fn default() -> AboutMetadata
fn default() -> AboutMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AboutMetadata
impl RefUnwindSafe for AboutMetadata
impl Send for AboutMetadata
impl Sync for AboutMetadata
impl Unpin for AboutMetadata
impl UnwindSafe for AboutMetadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)