Skip to main content

generate_rust

Function generate_rust 

Source
pub fn generate_rust(policy: &RbacPolicy) -> String
Expand description

Generate Rust source code for the roles defined in policy.

The output is a complete .rs file ready to be include!’d or written to disk.