Scope
此内容尚不支持你的语言。
An argument for fine grained behavior control of Tauri commands.
It can be of any serde serializable type and is used to allow or prevent certain actions inside a Tauri command. The configured scope is passed to the command and will be enforced by the command implementation.
{  "allow": [{ "path": "$HOME/**" }],  "deny": [{ "path": "$HOME/secret.txt" }]}Object Properties:
- allow
- deny
Value[] | null
Data that defines what is allowed by the scope.
Value[] | null
Data that defines what is denied by the scope. This should be prioritized by validation logic.
Any of the following:
- integerformatted as- int64Represents an [- i64].
- numberformatted as- doubleRepresents a [- f64].
A valid ACL number.
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.
© 2025 Tauri Contributors. CC-BY / MIT