[][src]Struct aws_iam::model::types::ConditionOperator

pub struct ConditionOperator {
    pub quantifier: Option<ConditionOperatorQuantifier>,
    pub operator: GlobalConditionOperator,
    pub only_if_exists: bool,
}

Pulls apart the string form of an operator used by IAM. It identifies the quantifiers which are used as string prefixes and recognizes the if exist suffix as well.

Fields

quantifier: Option<ConditionOperatorQuantifier>

Used to test multiple keys or multiple values for a single key in a request.

operator: GlobalConditionOperator

The condition operator you choose to use.

only_if_exists: bool

You use this to say "If the policy key is present in the context of the request, process the key as specified in the policy. If the key is not present, evaluate the condition element as true." Other condition elements in the statement can still result in a nonmatch, but not a missing key when checked with ...IfExists.

Methods

impl ConditionOperator[src]

pub fn new(base: GlobalConditionOperator) -> Self[src]

Construct a new operator using one of the global operators.

pub fn new_other(condition: QString) -> Self[src]

Construct a new operator which isn't one of the global ones.

pub fn for_all(self) -> Self[src]

Set the quantifier to for-all-values.

pub fn for_any(self) -> Self[src]

Set the quantifier to for-any-value.

pub fn if_exists(self) -> Self[src]

Set the value of the constraint to true.

Trait Implementations

impl Clone for ConditionOperator[src]

impl Eq for ConditionOperator[src]

impl PartialEq<ConditionOperator> for ConditionOperator[src]

impl Display for ConditionOperator[src]

impl Debug for ConditionOperator[src]

impl FromStr for ConditionOperator[src]

type Err = ConditionOperatorError

The associated error which can be returned from parsing.

impl Hash for ConditionOperator[src]

impl StructuralPartialEq for ConditionOperator[src]

impl StructuralEq for ConditionOperator[src]

impl Serialize for ConditionOperator[src]

impl<'de> Deserialize<'de> for ConditionOperator[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,