Module policy

Module policy 

Source
Expand description

Security Policy Registry.

Stores predicate and capability definitions parsed from ## Policy blocks. These are used to generate security methods on structs and enforce them with the Check statement.

Structs§

CapabilityDef
A capability definition: A User can publish the Document if...
PolicyRegistry
Registry for security policies defined in ## Policy blocks.
PredicateDef
A predicate definition: A User is admin if the user's role equals "admin".

Enums§

PolicyCondition
Condition in a policy definition. Represents the predicate logic for security rules.