pub enum Access {
Public,
Authenticated,
Member,
Role(String),
Owner,
Private,
}Expand description
Access policy for a single action on a resource.
On an organisation-scoped resource, org membership is always required and
queries are already filtered to the caller’s active organisation; these
levels then decide who among the members may act. Role is an
organisation role (from the caller’s membership), not a global one.
Variants§
Public
No auth required. Only meaningful on global resources; on an
org-scoped resource it is treated like member.
Authenticated
Any authenticated principal (⇒ any member, on an org-scoped resource).
Member
Any member of the (active) organisation.
Role(String)
A member holding the named role within the organisation.
Owner
The principal must own the row (owner_field == principal id).
Private
Never exposed.
Implementations§
Trait Implementations§
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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
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.