pub struct DefaultPermission {
pub version: Option<NonZeroU64>,
pub description: Option<String>,
pub permissions: Vec<String>,
}
Expand description
The default permission set of the plugin.
Works similarly to a permission with the “default” identifier.
Fields§
§version: Option<NonZeroU64>
The version of the permission.
description: Option<String>
Human-readable description of what the permission does. Tauri convention is to use
headings in markdown content for Tauri documentation generation purposes.
permissions: Vec<String>
All permissions this set contains.
Trait Implementations§
Source§impl Debug for DefaultPermission
impl Debug for DefaultPermission
Source§impl<'de> Deserialize<'de> for DefaultPermission
impl<'de> Deserialize<'de> for DefaultPermission
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 DefaultPermission
impl RefUnwindSafe for DefaultPermission
impl Send for DefaultPermission
impl Sync for DefaultPermission
impl Unpin for DefaultPermission
impl UnwindSafe for DefaultPermission
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