pub struct ParsedOperatorName {
pub op: ConditionOperator,
pub if_exists: bool,
pub qualifier: Qualifier,
}Expand description
Parsed operator name: the base ConditionOperator, the
IfExists flag, and the ForAllValues / ForAnyValue qualifier.
Fields§
§op: ConditionOperator§if_exists: bool§qualifier: QualifierImplementations§
Source§impl ParsedOperatorName
impl ParsedOperatorName
Sourcepub fn parse(raw: &str) -> Option<Self>
pub fn parse(raw: &str) -> Option<Self>
Parse an operator name as it appears in a policy JSON key, e.g.
"StringEqualsIfExists", "ForAllValues:StringLike",
"ForAnyValue:DateLessThanIfExists".
Returns None if the base operator is not one of the 28 AWS
defines. The caller should safe-fail (statement does not apply)
on None.
Trait Implementations§
Source§impl Clone for ParsedOperatorName
impl Clone for ParsedOperatorName
Source§fn clone(&self) -> ParsedOperatorName
fn clone(&self) -> ParsedOperatorName
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 ParsedOperatorName
impl Debug for ParsedOperatorName
Source§impl PartialEq for ParsedOperatorName
impl PartialEq for ParsedOperatorName
impl Copy for ParsedOperatorName
impl Eq for ParsedOperatorName
impl StructuralPartialEq for ParsedOperatorName
Auto Trait Implementations§
impl Freeze for ParsedOperatorName
impl RefUnwindSafe for ParsedOperatorName
impl Send for ParsedOperatorName
impl Sync for ParsedOperatorName
impl Unpin for ParsedOperatorName
impl UnsafeUnpin for ParsedOperatorName
impl UnwindSafe for ParsedOperatorName
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.