pub struct AccessTrie { /* 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 AccessTrie
impl AccessTrie
Sourcepub fn union(self, other: &AccessTrie) -> AccessTrie
pub fn union(self, other: &AccessTrie) -> AccessTrie
Union two AccessTrie
s together.
The new trie requests the data from both of the original.
Sourcepub fn union_mut(&mut self, other: &AccessTrie)
pub fn union_mut(&mut self, other: &AccessTrie)
Like AccessTrie::union
, but modifies the current trie.
Sourcepub fn children(&self) -> &HashMap<SmolStr, Box<AccessTrie>>
pub fn children(&self) -> &HashMap<SmolStr, Box<AccessTrie>>
Get the children of this AccessTrie
.
Sourcepub fn ancestors_required(&self) -> &RootAccessTrie
pub fn ancestors_required(&self) -> &RootAccessTrie
Get a boolean which is true if this trie requires all ancestors of the entity to be loaded.
Trait Implementations§
Source§impl Clone for AccessTrie
impl Clone for AccessTrie
Source§fn clone(&self) -> AccessTrie
fn clone(&self) -> AccessTrie
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 Debug for AccessTrie
impl Debug for AccessTrie
Source§impl Default for AccessTrie
impl Default for AccessTrie
Source§fn default() -> AccessTrie
fn default() -> AccessTrie
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessTrie
impl<'de> Deserialize<'de> for AccessTrie
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTrie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccessTrie, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AccessTrie
impl PartialEq for AccessTrie
Source§impl Serialize for AccessTrie
impl Serialize for AccessTrie
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 Eq for AccessTrie
impl StructuralPartialEq for AccessTrie
Auto Trait Implementations§
impl Freeze for AccessTrie
impl RefUnwindSafe for AccessTrie
impl Send for AccessTrie
impl Sync for AccessTrie
impl Unpin for AccessTrie
impl UnwindSafe for AccessTrie
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§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