Capability

Derive Macro Capability 

Source
#[derive(Capability)]
Expand description

Derive macro to automatically implement the Capability trait.

Computes a BLAKE3 hash of the struct name and generates a HashStream type.

§Usage

#[derive(Capability)]
struct CanRead;

#[derive(Capability)]
struct CanWrite;

// Now you can use:
type MyCaps = caps![CanRead, CanWrite];