pub struct K1Groups { /* private fields */ }Implementations§
Source§impl K1Groups
impl K1Groups
pub fn open( root: &Path, ordering: Arc<K1TxnOrdering>, peering: Arc<K1Peering>, ) -> Result<Self, String>
pub fn create(&self, owner: UserId) -> Result<GroupRevision, String>
pub fn set_user_role( &self, actor: UserId, group: GroupId, user: UserId, role: Option<GroupRole>, ) -> Result<GroupRevision, String>
pub fn set_model_membership( &self, actor: UserId, group: GroupId, model: ModelId, present: bool, ) -> Result<GroupRevision, String>
pub fn get(&self, group: GroupId) -> Result<Option<Group>, String>
pub fn groups_for_user(&self, user: UserId) -> Result<Vec<GroupId>, String>
pub fn groups_for_model(&self, model: ModelId) -> Result<Vec<GroupId>, String>
pub fn memberships( &self, user: UserId, model: ModelId, ) -> Result<GroupMemberships, String>
Auto Trait Implementations§
impl Freeze for K1Groups
impl RefUnwindSafe for K1Groups
impl Send for K1Groups
impl Sync for K1Groups
impl Unpin for K1Groups
impl UnsafeUnpin for K1Groups
impl UnwindSafe for K1Groups
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