pub struct PolicyCondition {
pub operator: PolicyConditionOperator,
pub key: String,
pub values: Vec<String>,
pub set_operator: Option<PolicyConditionSetOperator>,
}Fields§
§operator: PolicyConditionOperatorThe comparison operator
key: StringThe condition key to evaluate
values: Vec<String>Values to compare against
set_operator: Option<PolicyConditionSetOperator>Evaluates operator against a multi-valued context key (a set, such as basalt:TagKeys — the tag keys a request carries) rather than a single value. Omit for an ordinary single-valued condition. - for_all_values — holds when every member of the request set satisfies operator. An absent or empty set holds vacuously, so a request carrying no tags is not fenced by a tag-key restriction. - for_any_value — holds when at least one member does. An absent or empty set does not hold.
Trait Implementations§
Source§impl Clone for PolicyCondition
impl Clone for PolicyCondition
Source§impl Debug for PolicyCondition
impl Debug for PolicyCondition
Source§impl<'de> Deserialize<'de> for PolicyCondition
impl<'de> Deserialize<'de> for PolicyCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PolicyCondition
impl RefUnwindSafe for PolicyCondition
impl Send for PolicyCondition
impl Sync for PolicyCondition
impl Unpin for PolicyCondition
impl UnsafeUnpin for PolicyCondition
impl UnwindSafe for PolicyCondition
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