Trait ToCasbinString

Source
pub trait ToCasbinString {
    // Required method
    fn to_casbin_string(self) -> String;
}
Expand description

This trait is used to allow different struct to be used with casbin.

This allows strict rules for keys in the permissions system. Similar to redis we use prefixes here to differentiate resources. E.g. user::<UUID> and group::<ID>

Required Methods§

Implementations on Foreign Types§

Source§

impl ToCasbinString for &[AccessMethod]

Source§

fn to_casbin_string(self) -> String

Converts multiple AccessMethods to a Regex that matches any one of them

Implementors§