pub struct Permission {
pub version: Option<NonZeroU64>,
pub identifier: String,
pub description: Option<String>,
pub commands: Commands,
pub scope: Scopes,
pub platforms: Option<Vec<Target>>,
}
Expand description
Descriptions of explicit privileges of commands.
It can enable commands to be accessible in the frontend of the application.
If the scope is defined it can be used to fine grain control the access of individual or multiple commands.
Fields§
§version: Option<NonZeroU64>
The version of the permission.
identifier: String
A unique identifier for the permission.
description: Option<String>
Human-readable description of what the permission does. Tauri internal convention is to use
headings in markdown content for Tauri documentation generation purposes.
commands: Commands
Allowed or denied commands when using this permission.
scope: Scopes
Allowed or denied scoped when using this permission.
platforms: Option<Vec<Target>>
Target platforms this permission applies. By default all platforms are affected by this permission.
Implementations§
Trait Implementations§
Source§impl Debug for Permission
impl Debug for Permission
Source§impl Default for Permission
impl Default for Permission
Source§fn default() -> Permission
fn default() -> Permission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Permission
impl<'de> Deserialize<'de> for Permission
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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