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<EvalResult> for EvalResult
impl PartialEq<EvalResult> for EvalResult
source§fn eq(&self, other: &EvalResult) -> bool
fn eq(&self, other: &EvalResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EvalResult> for EvalResult
impl PartialOrd<EvalResult> for EvalResult
source§fn partial_cmp(&self, other: &EvalResult) -> Option<Ordering>
fn partial_cmp(&self, other: &EvalResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for EvalResult
impl StructuralEq for EvalResult
impl StructuralPartialEq for EvalResult
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.