casbin::function_map

Function key_get

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

key_get returns the matched part
For example, “/foo/bar/foo” matches “/foo/*”
“bar/foo” will be returned.