Enum cedar_policy::EvalResult
source · pub enum EvalResult {
Bool(bool),
Long(i64),
String(String),
EntityUid(EntityUid),
Set(Set),
Record(Record),
ExtensionValue(String),
}
Expand description
Result of Evaluation
Variants§
Bool(bool)
Boolean value
Long(i64)
Signed integer value
String(String)
String value
EntityUid(EntityUid)
Entity Uid
Set(Set)
A first-class set
Record(Record)
A first-class anonymous record
ExtensionValue(String)
An extension value, currently limited to String results
Trait Implementations§
source§impl Debug for EvalResult
impl Debug for EvalResult
source§impl Display for EvalResult
impl Display for EvalResult
source§impl Ord for EvalResult
impl Ord for EvalResult
source§fn cmp(&self, other: &EvalResult) -> Ordering
fn cmp(&self, other: &EvalResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EvalResult
impl PartialEq for EvalResult
source§impl PartialOrd for EvalResult
impl PartialOrd for EvalResult
impl Eq for EvalResult
impl StructuralPartialEq for EvalResult
Auto Trait Implementations§
impl Freeze for EvalResult
impl RefUnwindSafe for EvalResult
impl Send for EvalResult
impl Sync for EvalResult
impl Unpin for EvalResult
impl UnwindSafe for EvalResult
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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