pub enum GrantSet {
All,
Listed(BTreeSet<Grant>),
}Expand description
What a role holds: every grant (ADMIN) or exactly those it lists.
Variants§
All
Every grant — the admin role, and only it by default.
Listed(BTreeSet<Grant>)
Exactly these grants.
Implementations§
Trait Implementations§
impl Eq for GrantSet
impl StructuralPartialEq for GrantSet
Auto Trait Implementations§
impl Forget for GrantSet
impl Freeze for GrantSet
impl Move for GrantSet
impl RefUnwindSafe for GrantSet
impl Send for GrantSet
impl Sync for GrantSet
impl Unpin for GrantSet
impl UnsafeUnpin for GrantSet
impl UnwindSafe for GrantSet
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