casbin::function_map

Function key_get3

Source
pub fn key_get3(key1: &str, key2: &str, path_var: &str) -> String
Expand description

key_get3 returns value matched pattern
For example, “project/proj_project1_admin/” matches “project/proj_{project}_admin/”
if the pathVar == “project”, then “project1” will be returned.