pub enum AttributeAccess {
EntityLUB(EntityLUB, Vec<SmolStr>),
Context(EntityUID, Vec<SmolStr>),
Other(Vec<SmolStr>),
}Expand description
Contains more detailed information about an attribute access when it occurs
on an entity type expression or on the context variable. Track a Vec of
attributes rather than a single attribute so that on principal.foo.bar can
report that the record attribute foo of an entity type (e.g., User)
needs attributes bar instead of giving up when the immediate target of the
attribute access is not a entity.
Variants§
EntityLUB(EntityLUB, Vec<SmolStr>)
The attribute access is some sequence of attributes accesses eventually
targeting an EntityLUB.
Context(EntityUID, Vec<SmolStr>)
The attribute access is some sequence of attributes accesses eventually
targeting the context variable. The context being accessed is identified
by the EntityUID for the associated action.
Other(Vec<SmolStr>)
Other cases where we do not attempt to give more information about the
access. This includes any access on the AnyEntity type and on record
types other than the context variable.
Trait Implementations§
Source§impl Clone for AttributeAccess
impl Clone for AttributeAccess
Source§fn clone(&self) -> AttributeAccess
fn clone(&self) -> AttributeAccess
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttributeAccess
impl Debug for AttributeAccess
Source§impl Display for AttributeAccess
impl Display for AttributeAccess
Source§impl Hash for AttributeAccess
impl Hash for AttributeAccess
Source§impl PartialEq for AttributeAccess
impl PartialEq for AttributeAccess
impl Eq for AttributeAccess
impl StructuralPartialEq for AttributeAccess
Auto Trait Implementations§
impl Freeze for AttributeAccess
impl RefUnwindSafe for AttributeAccess
impl Send for AttributeAccess
impl Sync for AttributeAccess
impl Unpin for AttributeAccess
impl UnwindSafe for AttributeAccess
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
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more