pub enum PfEntity {
Public,
Authenticated,
UserField(String),
Role(String),
User(String),
}Expand description
An entity key inside protectedFields.
Note what is not shared with OpEntity: there is no requiresAuthentication (the
spelling here is authenticated) and no pointerFields (the spelling here is
userField:<name>). Upstream validates the two with two different functions and two different
key sets.
Variants§
Public
"*". Always applicable.
Authenticated
"authenticated". Applicable only when the caller is a logged-in user.
UserField(String)
"userField:<name>". Applicable when the named field on the row points at the caller,
which cannot be known until the row has been read.
Role(String)
"role:<name>", stored without the prefix.
User(String)
An objectId.
Implementations§
Trait Implementations§
impl Eq for PfEntity
impl StructuralPartialEq for PfEntity
Auto Trait Implementations§
impl Freeze for PfEntity
impl RefUnwindSafe for PfEntity
impl Send for PfEntity
impl Sync for PfEntity
impl Unpin for PfEntity
impl UnsafeUnpin for PfEntity
impl UnwindSafe for PfEntity
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.