pub enum ModPerms {
Set(HashSet<String>),
Grant(HashSet<String>),
Revoke(HashSet<String>),
GrantRevoke(HashSet<String>, HashSet<String>),
}Expand description
Enumeration of account permission change methods.
Variants§
Set(HashSet<String>)
Reset the account’s permissions to the ones passed in the supplied HashSet.
Grant(HashSet<String>)
Add the supplied permissions to the account’s permissions. Collisions are ignored.
Revoke(HashSet<String>)
Remove the supplied permissions from the account’s permissions. Removal of permissions the account doesn’t have are silently ignored.
GrantRevoke(HashSet<String>, HashSet<String>)
First grant permissions to the account, then remove permissions.
Auto Trait Implementations§
impl Freeze for ModPerms
impl RefUnwindSafe for ModPerms
impl Send for ModPerms
impl Sync for ModPerms
impl Unpin for ModPerms
impl UnwindSafe for ModPerms
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