pub struct K1AccessProfiles { /* private fields */ }Implementations§
Source§impl K1AccessProfiles
impl K1AccessProfiles
pub fn open( root: &Path, ordering: Arc<K1TxnOrdering>, peering: Arc<K1Peering>, ) -> Result<Self, String>
pub fn create( &self, owner: UserId, profile: AuthorizationProfile, ) -> Result<ProfileRevision, String>
pub fn replace( &self, actor: UserId, profile_id: ProfileId, profile: AuthorizationProfile, ) -> Result<ProfileRevision, String>
pub fn delete( &self, actor: UserId, profile_id: ProfileId, ) -> Result<ProfileRevision, String>
pub fn get_for_user( &self, user: UserId, profile_id: ProfileId, ) -> Result<Option<SavedProfile>, String>
pub fn list_for_user(&self, user: UserId) -> Result<Vec<SavedProfile>, String>
pub fn resolve( &self, principal: RequestPrincipal, selection: ProfileSelection, ) -> Result<ResolvedProfile, String>
Auto Trait Implementations§
impl Freeze for K1AccessProfiles
impl RefUnwindSafe for K1AccessProfiles
impl Send for K1AccessProfiles
impl Sync for K1AccessProfiles
impl Unpin for K1AccessProfiles
impl UnsafeUnpin for K1AccessProfiles
impl UnwindSafe for K1AccessProfiles
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