pub struct TablePermission {
pub read: bool,
pub insert: bool,
pub update: bool,
pub delete: bool,
pub attribute_permissions: HashMap<String, AttributePermission>,
}Expand description
Table-level CRUD permission grants.
Each bool maps 1:1 to a CRUD verb. attribute_permissions is a
per-field override map: if a field appears with read=false, the
field is hidden from the response even when read=true at the
table level.
Fields§
§read: boolAllow reading records.
insert: boolAllow inserting records.
update: boolAllow updating records.
delete: boolAllow deleting records.
attribute_permissions: HashMap<String, AttributePermission>Per-attribute permission overrides.
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 moreSource§impl Debug for TablePermission
impl Debug for TablePermission
Source§impl Default for TablePermission
impl Default for TablePermission
Source§fn default() -> TablePermission
fn default() -> TablePermission
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TablePermission
impl<'de> Deserialize<'de> for TablePermission
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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