Skip to content
Tauri

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:

  • integer formatted as int64 Represents an [i64].
  • number formatted as double Represents a [f64].

A valid ACL number.

Value

Any of the following:

  • null Represents a null JSON value.
  • boolean Represents a [bool].
  • Number Represents a valid ACL [Number].
  • string Represents 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