casbin::function_map

Function key_match3

Source
pub fn key_match3(key1: &str, key2: &str) -> bool
Expand description

key_match3 determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain a *
For example, “/foo/bar” matches “/foo/*”, “/resource1” matches “/{resource}”