casbin::function_map

Function key_get2

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

key_get2 returns value matched pattern
For example, “/resource1” matches “/:resource”
if the pathVar == “resource”, then “resource1” will be returned.