pub struct AppManifest { /* private fields */ }
Expand description
Tauri application permission manifest.
By default it generates a manifest that parses permissions from the permissions
directory.
To change the glob pattern that is used to find permissions, use Self::permissions_path_pattern
.
To autogenerate permissions for each of the app commands, see Self::commands
.
Implementations§
Source§impl AppManifest
impl AppManifest
pub fn new() -> Self
Sourcepub fn commands(self, commands: &'static [&'static str]) -> Self
pub fn commands(self, commands: &'static [&'static str]) -> Self
Define a list of commands that gets permissions autogenerated in the format of allow-$command
and deny-$command
where $command is the command name in snake_case.
Sourcepub fn permissions_path_pattern(self, pattern: &'static str) -> Self
pub fn permissions_path_pattern(self, pattern: &'static str) -> Self
Sets a glob pattern that is used to find the permissions of the app.
Note: You must emit [rerun-if-changed] instructions for the permissions directory.
By default it is ./permissions/**/*
ignoring any InlinedPlugin
.
Trait Implementations§
Source§impl Clone for AppManifest
impl Clone for AppManifest
Source§fn clone(&self) -> AppManifest
fn clone(&self) -> AppManifest
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 AppManifest
impl Debug for AppManifest
Source§impl Default for AppManifest
impl Default for AppManifest
Source§fn default() -> AppManifest
fn default() -> AppManifest
Returns the “default value” for a type. Read more
impl Copy for AppManifest
Auto Trait Implementations§
impl Freeze for AppManifest
impl RefUnwindSafe for AppManifest
impl Send for AppManifest
impl Sync for AppManifest
impl Unpin for AppManifest
impl UnwindSafe for AppManifest
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
)