pub struct MemoryRoles { /* private fields */ }Expand description
An editable RoleTable: the activations’ declared defaults, an admin’s
edits replacing a role outright.
Implementations§
Source§impl MemoryRoles
impl MemoryRoles
pub fn new(table: RoleTable) -> Self
Sourcepub fn from_declared(declared: &BTreeMap<String, Vec<String>>) -> Self
pub fn from_declared(declared: &BTreeMap<String, Vec<String>>) -> Self
Seeded from DynamicHub::declared_roles
— every activation’s roles(...), merged by name.
Trait Implementations§
Source§impl Debug for MemoryRoles
impl Debug for MemoryRoles
Source§impl Default for MemoryRoles
impl Default for MemoryRoles
Source§impl RoleStore for MemoryRoles
impl RoleStore for MemoryRoles
Auto Trait Implementations§
impl !Freeze for MemoryRoles
impl Forget for MemoryRoles
impl RefUnwindSafe for MemoryRoles
impl Send for MemoryRoles
impl Sync for MemoryRoles
impl Unpin for MemoryRoles
impl UnsafeUnpin for MemoryRoles
impl UnwindSafe for MemoryRoles
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