Skip to main content

Module types

Module types 

Source
Expand description

UCAN-lite payload types.

Decoded from a JWT compact form by crate::ucan::parse_jwt. Pure data — no behaviour, no allocations beyond the strings these fields own.

Spec: docs/archive/superpowers/specs/2026-05-11-sp-capability-v2-design.md §4.1, §4.5, §5.1

Structs§

UcanCapability
UCAN capability inside payload.args — a flat list of ATD capability strings (records:read, fs.write, …) plus optional resource bindings (e.g. {"patient": "Patient/X"}).
UcanHeader
JWT header — the part before the first . in the compact form.
UcanPayload
UCAN payload — the middle segment of the JWT compact form.