pub struct ConditionOperator {
pub quantifier: Option<ConditionOperatorQuantifier>,
pub operator: GlobalConditionOperator,
pub if_exists: bool,
}
Expand description
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.
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
.
Implementations§
Source§impl ConditionOperator
impl ConditionOperator
Trait Implementations§
Source§impl Clone for ConditionOperator
impl Clone for ConditionOperator
Source§fn clone(&self) -> ConditionOperator
fn clone(&self) -> ConditionOperator
Returns a duplicate 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 ConditionOperator
impl Debug for ConditionOperator
Source§impl<'de> Deserialize<'de> for ConditionOperator
impl<'de> Deserialize<'de> for ConditionOperator
Source§fn deserialize<D>(deserializer: D) -> Result<ConditionOperator, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ConditionOperator, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConditionOperator
impl Display for ConditionOperator
Source§impl FromStr for ConditionOperator
impl FromStr for ConditionOperator
Source§impl Hash for ConditionOperator
impl Hash for ConditionOperator
Source§impl PartialEq for ConditionOperator
impl PartialEq for ConditionOperator
Source§impl Serialize for ConditionOperator
impl Serialize for ConditionOperator
impl Eq for ConditionOperator
impl StructuralPartialEq for ConditionOperator
Auto Trait Implementations§
impl Freeze for ConditionOperator
impl RefUnwindSafe for ConditionOperator
impl Send for ConditionOperator
impl Sync for ConditionOperator
impl Unpin for ConditionOperator
impl UnwindSafe for ConditionOperator
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