Expand description
Access Control List types.
§Stability
This is a core functionality that is not considered part of the stable API. If you use it, note that it may include breaking changes in the future.
These items are intended to be non-breaking from a de/serialization standpoint only. Using and modifying existing config values will try to avoid breaking changes, but they are free to add fields in the future - causing breaking changes for creating and full destructuring.
To avoid this, ignore unknown fields when destructuring with the {my, config, ..}
pattern.
If you need to create the Rust config directly without deserializing, then create the struct
the Struct Update Syntax with ..Default::default()
, which may need a
#[allow(clippy::needless_update)]
attribute if you are declaring all fields.
Re-exports§
pub use self::identifier::*;
pub use self::value::*;
Modules§
- capability
- End-user abstraction for selecting permissions a window has access to.
- identifier
- Identifier for plugins.
- manifest
- Plugin ACL types.
- resolved
- Resolved ACL for runtime usage.
- value
- A
Value
that is used instead oftoml::Value
orserde_json::Value
to support both formats.
Structs§
- Commands
- Allowed and denied commands inside a permission.
- Permission
- Descriptions of explicit privileges of commands.
- Permission
Set - A set of direct permissions grouped together under a new name.
- Remote
UrlPattern - UrlPattern for
ExecutionContext::Remote
. - Scopes
- An argument for fine grained behavior control of Tauri commands.
Enums§
- Error
- Possible errors while processing ACL files.
- Execution
Context - Execution context of an IPC call.
Constants§
- ACL_
MANIFESTS_ FILE_ NAME - Known acl manifests file
- APP_
ACL_ KEY - Known ACL key for the app permissions.
- CAPABILITIES_
FILE_ NAME - Known capabilityies file
- PERMISSION_
SCHEMAS_ FOLDER_ NAME - Known foldername of the permission schema files
- PERMISSION_
SCHEMA_ FILE_ NAME - Known filename of the permission schema JSON file