pub struct InMemoryPermissionRepository { /* private fields */ }Expand description
In-memory permission repository (for testing)
Implementations§
Trait Implementations§
Source§impl PermissionRepository for InMemoryPermissionRepository
impl PermissionRepository for InMemoryPermissionRepository
Source§fn load_config(&self) -> Result<PermissionConfig>
fn load_config(&self) -> Result<PermissionConfig>
Load permission configuration from storage
Source§fn save_config(&self, config: &PermissionConfig) -> Result<()>
fn save_config(&self, config: &PermissionConfig) -> Result<()>
Save permission configuration to storage
Source§fn load_audit_logs(&self) -> Result<Vec<AuditLogEntry>>
fn load_audit_logs(&self) -> Result<Vec<AuditLogEntry>>
Load audit logs from storage
Source§fn save_audit_logs(&self, logs: &[AuditLogEntry]) -> Result<()>
fn save_audit_logs(&self, logs: &[AuditLogEntry]) -> Result<()>
Save audit logs to storage
Source§fn append_audit_log(&self, entry: &AuditLogEntry) -> Result<()>
fn append_audit_log(&self, entry: &AuditLogEntry) -> Result<()>
Append a single audit log entry to storage
Auto Trait Implementations§
impl Freeze for InMemoryPermissionRepository
impl RefUnwindSafe for InMemoryPermissionRepository
impl Send for InMemoryPermissionRepository
impl Sync for InMemoryPermissionRepository
impl Unpin for InMemoryPermissionRepository
impl UnwindSafe for InMemoryPermissionRepository
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