pub struct OpPerm {
pub entities: Vec<OpEntity>,
pub pointer_fields: Vec<String>,
}Expand description
One operation’s permission object.
No Default impl, on purpose. See the module note: an empty OpPerm is deny-all, and
absent is unrestricted, so the two must never be reachable from one another by accident.
Fields§
§entities: Vec<OpEntity>Entities granted the operation. Only a literal true counts upstream
(SchemaController.js:367-396); false, 0 and "true" are all INVALID_JSON at
validation, so anything reaching here is a grant.
pointer_fields: Vec<String>pointerFields: the caller must be the value of one of these fields on the row.
Implementations§
Trait Implementations§
impl Eq for OpPerm
impl StructuralPartialEq for OpPerm
Auto Trait Implementations§
impl Freeze for OpPerm
impl RefUnwindSafe for OpPerm
impl Send for OpPerm
impl Sync for OpPerm
impl Unpin for OpPerm
impl UnsafeUnpin for OpPerm
impl UnwindSafe for OpPerm
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.