pub struct RbacMatrix { /* private fields */ }Expand description
Role-based access control matrix for test generation.
Implementations§
Source§impl RbacMatrix
impl RbacMatrix
pub fn new() -> Self
Sourcepub fn config_for_role(&self, role: &str) -> AgentConfig
pub fn config_for_role(&self, role: &str) -> AgentConfig
Build an AgentConfig for a specific role.
Sourcepub fn generate_allowlist_tests(&self, user_message: &str) -> Vec<TestCase>
pub fn generate_allowlist_tests(&self, user_message: &str) -> Vec<TestCase>
Auto-generate allowlist tests: one test per role verifying tools within allowlist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RbacMatrix
impl RefUnwindSafe for RbacMatrix
impl Send for RbacMatrix
impl Sync for RbacMatrix
impl Unpin for RbacMatrix
impl UnsafeUnpin for RbacMatrix
impl UnwindSafe for RbacMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more