1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Struct-based authorization stub (PRD ยง13 #2 โ Casbin deferred).
//!
//! Applications can implement [`Policy`] with their own action/resource types and call
//! [`Policy::authorize`] before mutating state.
use fmt;
use Error;
/// Authorization failure (minimal stub).
;
/// Gate carrying the current subject; extend with resource-specific checks.
/// Optional trait for richer policy objects.