Trait BatchOperations

Source
pub trait BatchOperations {
    // Required methods
    fn batch_check_permissions(
        &self,
        checks: Vec<BatchPermissionCheck>,
    ) -> Result<BatchResult<bool>, Error>;
    fn batch_role_operations(
        &mut self,
        operations: Vec<BatchRoleAssignment>,
    ) -> Result<BatchResult<()>, Error>;
}
Expand description

Extension trait for RoleSystem to support batch operations

Required Methods§

Source

fn batch_check_permissions( &self, checks: Vec<BatchPermissionCheck>, ) -> Result<BatchResult<bool>, Error>

Perform batch permission checks

Source

fn batch_role_operations( &mut self, operations: Vec<BatchRoleAssignment>, ) -> Result<BatchResult<()>, Error>

Perform batch role assignments and revocations (requires mutable access)

Implementors§