pub enum GrantedNamespaces {
All,
Exact(BTreeSet<String>),
}Expand description
The answer to “which namespaces may this principal verb?” (#324).
Deliberately not a plain set: “every namespace” and “these three” are
different answers, and collapsing the first into a snapshot of the
namespaces that happen to exist would go stale the moment a write mints a
new one. A caller that wants a concrete list intersects Exact with the
namespaces it cares about, and treats All as no filter at all.
Variants§
All
Every namespace, including ones not yet written.
Exact(BTreeSet<String>)
Exactly these. Empty = the verb is granted nowhere (fail closed).
Implementations§
Trait Implementations§
Source§impl Clone for GrantedNamespaces
impl Clone for GrantedNamespaces
Source§impl Debug for GrantedNamespaces
impl Debug for GrantedNamespaces
impl Eq for GrantedNamespaces
Source§impl PartialEq for GrantedNamespaces
impl PartialEq for GrantedNamespaces
impl StructuralPartialEq for GrantedNamespaces
Auto Trait Implementations§
impl Freeze for GrantedNamespaces
impl RefUnwindSafe for GrantedNamespaces
impl Send for GrantedNamespaces
impl Sync for GrantedNamespaces
impl Unpin for GrantedNamespaces
impl UnsafeUnpin for GrantedNamespaces
impl UnwindSafe for GrantedNamespaces
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