pub struct RoleRegistry { /* private fields */ }Expand description
Role registry for managing role definitions
Implementations§
Source§impl RoleRegistry
impl RoleRegistry
Sourcepub fn register(&mut self, role: RoleDefinition)
pub fn register(&mut self, role: RoleDefinition)
Register a role
Sourcepub fn get(&self, id: &str) -> Option<&RoleDefinition>
pub fn get(&self, id: &str) -> Option<&RoleDefinition>
Get a role by ID
Sourcepub fn load_from_workflow(&mut self, roles: Vec<RoleDefinition>)
pub fn load_from_workflow(&mut self, roles: Vec<RoleDefinition>)
Load roles from workflow definition
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoleRegistry
impl RefUnwindSafe for RoleRegistry
impl Send for RoleRegistry
impl Sync for RoleRegistry
impl Unpin for RoleRegistry
impl UnsafeUnpin for RoleRegistry
impl UnwindSafe for RoleRegistry
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