Struct tauri_utils::acl::Scopes  
source · pub struct Scopes {
    pub allow: Option<Vec<Value>>,
    pub deny: Option<Vec<Value>>,
}Expand description
A restriction of the command/endpoint functionality.
It can be of any serde serializable type and is used for allowing or preventing certain actions inside a Tauri command.
The scope is passed to the command and handled/enforced by the command itself.
Fields§
§allow: Option<Vec<Value>>Data that defines what is allowed by the scope.
deny: Option<Vec<Value>>Data that defines what is denied by the scope.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Scopes
 
impl<'de> Deserialize<'de> for Scopes
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
source§impl PartialEq for Scopes
 
impl PartialEq for Scopes
impl StructuralPartialEq for Scopes
Auto Trait Implementations§
impl Freeze for Scopes
impl RefUnwindSafe for Scopes
impl Send for Scopes
impl Sync for Scopes
impl Unpin for Scopes
impl UnwindSafe for Scopes
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