pub struct Projection { /* private fields */ }Implementations§
Source§impl Projection
impl Projection
pub fn open( root: &Path, ordering: &K1TxnOrdering, ) -> Result<(Self, Option<TxId>), String>
pub fn apply( &self, callback_txid: TxId, action: GroupAction, ) -> Result<ApplyOutcome, 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>
pub fn clear(&self) -> Result<(), String>
Auto Trait Implementations§
impl !Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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