We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently diesel-adapter doesn't support casbin@0.3.0 because of breaking changes on Adapter trait.
diesel-adapter
casbin@0.3.0
Adapter
Now it has tow more functions:
remove_policies
add_policies
#[async_trait] pub trait Adapter: Send + Sync { async fn load_policy(&self, m: &mut dyn Model) -> Result<()>; async fn save_policy(&mut self, m: &mut dyn Model) -> Result<()>; async fn add_policy(&mut self, sec: &str, ptype: &str, rule: Vec<&str>) -> Result<bool>; async fn add_policies(&mut self, sec: &str, ptype: &str, rules: Vec<Vec<&str>>) -> Result<bool>; async fn remove_policy(&mut self, sec: &str, ptype: &str, rule: Vec<&str>) -> Result<bool>; async fn remove_policies( &mut self, sec: &str, ptype: &str, rules: Vec<Vec<&str>>, ) -> Result<bool>; async fn remove_filtered_policy( &mut self, sec: &str, ptype: &str, field_index: usize, field_values: Vec<&str>, ) -> Result<bool>; }
see also: casbin/casbin-rs#55
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently
diesel-adapter
doesn't supportcasbin@0.3.0
because of breaking changes onAdapter
trait.Now it has tow more functions:
remove_policies
add_policies
see also: casbin/casbin-rs#55
The text was updated successfully, but these errors were encountered: