Function cedar_policy_core::parser::parse_policy_template

source ·
pub fn parse_policy_template(
    id: Option<String>,
    text: &str,
) -> Result<Template, ParseErrors>
Expand description

Simple main function for parsing a policy template. If id is Some, then the resulting template will have that id. If the id is None, the parser will use “policy0”.