Scope
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.
Object Properties:
- allow
- deny
allow
Value[] | null
Data that defines what is allowed by the scope.
deny
Value[] | null
Data that defines what is denied by the scope.
Definitions
Number
Any of the following:
integerformatted asint64Represents an [i64].numberformatted asdoubleRepresents a [f64].
A valid ACL number.
Value
Any of the following:
nullRepresents a null JSON value.booleanRepresents a [bool].NumberRepresents a valid ACL [Number].stringRepresents a [String].Value[] Represents a list of other [Value]s.- Represents a map of [
String] keys to [Value]s. Allows additional properties:Value
All supported ACL values.
© 2024 Tauri Contributors. CC-BY / MIT