Enum cedar_policy_core::entities::TCComputation
source · pub enum TCComputation {
AssumeAlreadyComputed,
EnforceAlreadyComputed,
ComputeNow,
}
Expand description
Describes the option for how the TC (transitive closure) of the entity hierarchy is computed
Variants§
AssumeAlreadyComputed
Assume that the TC has already been computed and that the input is a DAG before the call of
Entities::from_entities
.
EnforceAlreadyComputed
Enforce that the TC must have already been computed before the call of
Entities::from_entities
. If the given entities don’t include all
transitive hierarchy relations, return an error. Also checks for cycles and returns an error if found.
ComputeNow
Compute the TC ourselves during the call of Entities::from_entities
.
This doesn’t make any assumptions about the input, which can in fact
contain just parent edges and not transitive ancestor edges. Also checks for cycles and returns an error if found.
Trait Implementations§
source§impl Clone for TCComputation
impl Clone for TCComputation
source§fn clone(&self) -> TCComputation
fn clone(&self) -> TCComputation
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 TCComputation
impl Debug for TCComputation
source§impl Hash for TCComputation
impl Hash for TCComputation
source§impl PartialEq for TCComputation
impl PartialEq for TCComputation
impl Copy for TCComputation
impl Eq for TCComputation
impl StructuralPartialEq for TCComputation
Auto Trait Implementations§
impl Freeze for TCComputation
impl RefUnwindSafe for TCComputation
impl Send for TCComputation
impl Sync for TCComputation
impl Unpin for TCComputation
impl UnwindSafe for TCComputation
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<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