pub enum TablePermission {
Public,
FullAccess,
AttributeRestricted {
readable: Option<Arc<Vec<String>>>,
writable: Option<Arc<Vec<String>>>,
},
}Expand description
Pre-computed authorization decision for a table operation.
Computed once by the auth layer, consumed by handlers.
Variants§
Public
Public operation via @export(public:[...]) — skip all RBAC.
FullAccess
Full field access (super_user, wildcard attributes, or dev mode).
AttributeRestricted
Restricted to specific readable/writable fields.
Trait Implementations§
Source§impl Clone for TablePermission
impl Clone for TablePermission
Source§fn clone(&self) -> TablePermission
fn clone(&self) -> TablePermission
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TablePermission
impl RefUnwindSafe for TablePermission
impl Send for TablePermission
impl Sync for TablePermission
impl Unpin for TablePermission
impl UnsafeUnpin for TablePermission
impl UnwindSafe for TablePermission
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