Enum scratchstack_aspen::condop::ConditionOp
source · [−]pub enum ConditionOp {
Arn(ArnCmp, Variant),
Binary(Variant),
Bool(Variant),
Date(DateCmp, Variant),
IpAddress(Variant),
Null,
Numeric(NumericCmp, Variant),
String(StringCmp, Variant),
}
Variants
Arn(ArnCmp, Variant)
Binary(Variant)
Bool(Variant)
Date(DateCmp, Variant)
IpAddress(Variant)
Null
Numeric(NumericCmp, Variant)
String(StringCmp, Variant)
Implementations
sourceimpl ConditionOp
impl ConditionOp
pub fn matches(
&self,
condition: &BTreeMap<String, StringLikeList<String>>,
context: &Context,
pv: PolicyVersion
) -> Result<bool, AspenError>
Trait Implementations
sourceimpl Borrow<str> for ConditionOp
impl Borrow<str> for ConditionOp
sourceimpl Clone for ConditionOp
impl Clone for ConditionOp
sourcefn clone(&self) -> ConditionOp
fn clone(&self) -> ConditionOp
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConditionOp
impl Debug for ConditionOp
sourceimpl<'de> Deserialize<'de> for ConditionOp
impl<'de> Deserialize<'de> for ConditionOp
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ConditionOp
impl Display for ConditionOp
sourceimpl FromStr for ConditionOp
impl FromStr for ConditionOp
sourceimpl Hash for ConditionOp
impl Hash for ConditionOp
sourceimpl Ord for ConditionOp
impl Ord for ConditionOp
sourcefn cmp(&self, other: &ConditionOp) -> Ordering
fn cmp(&self, other: &ConditionOp) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ConditionOp> for ConditionOp
impl PartialEq<ConditionOp> for ConditionOp
sourcefn eq(&self, other: &ConditionOp) -> bool
fn eq(&self, other: &ConditionOp) -> bool
sourceimpl PartialOrd<ConditionOp> for ConditionOp
impl PartialOrd<ConditionOp> for ConditionOp
sourcefn partial_cmp(&self, other: &ConditionOp) -> Option<Ordering>
fn partial_cmp(&self, other: &ConditionOp) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl Serialize for ConditionOp
impl Serialize for ConditionOp
impl Copy for ConditionOp
impl Eq for ConditionOp
impl StructuralEq for ConditionOp
impl StructuralPartialEq for ConditionOp
Auto Trait Implementations
impl RefUnwindSafe for ConditionOp
impl Send for ConditionOp
impl Sync for ConditionOp
impl Unpin for ConditionOp
impl UnwindSafe for ConditionOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more