Skip to main content

Module policy

Module policy 

Source
Expand description

Neutral policy hook. The server asks the hook before an action; the default allows everything. The server defines no tariff or tier: the product’s assertion carries opaque claims (see claims_from) and the hook decides what they mean.

Structs§

AllowAll
Allows everything.
PolicyContext

Enums§

Action
Things the server asks about.
Decision

Traits§

PolicyHook

Functions§

claims_from
Claims for a caller admitted by a signed assertion: flag (“0”/“1”, opaque).
enforce
Run the hook and turn a denial into the API error.

Type Aliases§

Claims
Opaque product claims for one caller.