pub struct Attributes { /* private fields */ }
Expand description
The attributes used on the build.
Implementations§
Source§impl Attributes
impl Attributes
Sourcepub fn windows_attributes(self, windows_attributes: WindowsAttributes) -> Self
pub fn windows_attributes(self, windows_attributes: WindowsAttributes) -> Self
Sets the icon to use on the window. Currently only used on Windows.
Sourcepub fn capabilities_path_pattern(self, pattern: &'static str) -> Self
pub fn capabilities_path_pattern(self, pattern: &'static str) -> Self
Set the glob pattern to be used to find the capabilities.
Note: You must emit rerun-if-changed instructions for your capabilities directory.
Sourcepub fn plugin(self, name: &'static str, plugin: InlinedPlugin) -> Self
pub fn plugin(self, name: &'static str, plugin: InlinedPlugin) -> Self
Adds the given plugin to the list of inlined plugins (a plugin that is part of your application).
See InlinedPlugin
for more information.
Sourcepub fn plugins<I>(self, plugins: I) -> Self
pub fn plugins<I>(self, plugins: I) -> Self
Adds the given list of plugins to the list of inlined plugins (a plugin that is part of your application).
See InlinedPlugin
for more information.
Sourcepub fn app_manifest(self, manifest: AppManifest) -> Self
pub fn app_manifest(self, manifest: AppManifest) -> Self
Sets the application manifest for the Access Control List.
See AppManifest
for more information.
pub fn codegen(self, codegen: CodegenContext) -> Self
Available on crate feature
codegen
only.Trait Implementations§
Source§impl Debug for Attributes
impl Debug for Attributes
Source§impl Default for Attributes
impl Default for Attributes
Source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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