pub struct AccessTrie<T = ()> { /* private fields */ }
Available on crate feature
entity-manifest
only.Expand description
A Trie representing a set of data paths to load, starting implicitly from a Cedar value.
T
represents an optional type annotation on each
node in the AccessTrie
.
This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features
Implementations§
Source§impl<T> AccessTrie<T>where
T: Clone,
impl<T> AccessTrie<T>where
T: Clone,
Sourcepub fn children(&self) -> &HashMap<SmolStr, Box<AccessTrie<T>>>
pub fn children(&self) -> &HashMap<SmolStr, Box<AccessTrie<T>>>
Get the children of this AccessTrie
.
Sourcepub fn ancestors_required(&self) -> bool
pub fn ancestors_required(&self) -> bool
Get a boolean which is true if this trie requires all ancestors of the entity to be loaded.
Sourcepub fn data(&self) -> &T
pub fn data(&self) -> &T
Get the data associated with this AccessTrie
.
This is usually ()
unless it is annotated by a type.
Trait Implementations§
Source§impl<T> Clone for AccessTrie<T>where
T: Clone,
impl<T> Clone for AccessTrie<T>where
T: Clone,
Source§fn clone(&self) -> AccessTrie<T>
fn clone(&self) -> AccessTrie<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for AccessTrie<T>where
T: Debug,
impl<T> Debug for AccessTrie<T>where
T: Debug,
Source§impl<'de, T> Deserialize<'de> for AccessTrie<T>where
T: Default,
impl<'de, T> Deserialize<'de> for AccessTrie<T>where
T: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTrie<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTrie<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> PartialEq for AccessTrie<T>where
T: PartialEq,
impl<T> PartialEq for AccessTrie<T>where
T: PartialEq,
Source§impl<T> Serialize for AccessTrie<T>
impl<T> Serialize for AccessTrie<T>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Eq for AccessTrie<T>where
T: Eq,
impl<T> StructuralPartialEq for AccessTrie<T>
Auto Trait Implementations§
impl<T> Freeze for AccessTrie<T>where
T: Freeze,
impl<T> RefUnwindSafe for AccessTrie<T>where
T: RefUnwindSafe,
impl<T> Send for AccessTrie<T>where
T: Send,
impl<T> Sync for AccessTrie<T>where
T: Sync,
impl<T> Unpin for AccessTrie<T>where
T: Unpin,
impl<T> UnwindSafe for AccessTrie<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.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>
Converts
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>
Converts
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