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
38
39
//! Policy storage value types — input document, stored version, and metadata.
use ;
/// Lightweight metadata for a stored policy version (no document body).
/// Input shape for saving a new policy.
///
/// Storage-layer counterpart of the runtime
/// [`crate::policy::document::PolicyDocument`]: this type holds just the name
/// and the raw document bytes (YAML or JSON, as authored) so the storage
/// layer never has to parse policy semantics.
/// Persisted policy version — metadata plus the document body.