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 Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.