pub struct Capability {
pub schema: String,
pub identifier: String,
pub description: String,
pub windows: Vec<String>,
pub permissions: Vec<String>,
}Expand description
A Tauri capability file, as generated from the manifest.
Fields§
§schema: String§identifier: String§description: String§windows: Vec<String>§permissions: Vec<String>Implementations§
Source§impl Capability
impl Capability
Sourcepub fn from_manifest(manifest: &Manifest) -> Vec<Self>
pub fn from_manifest(manifest: &Manifest) -> Vec<Self>
One capability file per profile, listing the windows that use it.
Grouped by profile rather than per window: two windows with the same profile should visibly share one grant, so widening it is one obvious diff instead of two that can drift apart.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Capability
impl Debug for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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