pub fn parse_policy(policy: &str) -> Result<ParsedPolicy>Expand description
Parse and validate a policy definition string.
The expected format is line-oriented:
policy <name>
<action> <target> [when <condition>]
...
endReturns a ParsedPolicy on success, or a descriptive error.