pub struct UnmatchedPolicyRule {
pub criterion: PolicyCriterion,
pub criterion_index: u64,
pub observed: Option<PolicyCriterionObservation>,
pub policy: EvaluatedPolicy,
pub rule_index: u64,
}Expand description
A rule that targeted the operation but did not match. Criteria are evaluated in order and evaluation stops at the first unmet one, so later criteria were not evaluated. observed is present when the service captured the value criterion was compared against.
JSON schema
{
"description": "A rule that targeted the operation but did not match. Criteria are evaluated in order and evaluation stops at the first unmet one, so later criteria were not evaluated. `observed` is present when the service captured the value `criterion` was compared against.",
"examples": [
{
"criterion": {
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"operator": "in",
"type": "evmAddress"
},
"criterionIndex": 1,
"observed": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"type": "evmAddress"
},
"policy": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"scope": "project",
"updatedAt": "2026-09-01T12:00:00Z"
},
"ruleIndex": 0
}
],
"type": "object",
"required": [
"criterion",
"criterionIndex",
"policy",
"ruleIndex"
],
"properties": {
"criterion": {
"$ref": "#/components/schemas/PolicyCriterion"
},
"criterionIndex": {
"description": "Zero-based index into the rule's `criteria` of the first unmet criterion.",
"examples": [
1
],
"type": "integer",
"minimum": 0.0
},
"observed": {
"$ref": "#/components/schemas/PolicyCriterionObservation"
},
"policy": {
"$ref": "#/components/schemas/EvaluatedPolicy"
},
"ruleIndex": {
"description": "Zero-based index into the policy's `rules`.",
"examples": [
0
],
"type": "integer",
"minimum": 0.0
}
}
}Fields§
§criterion: PolicyCriterion§criterion_index: u64Zero-based index into the rule’s criteria of the first unmet criterion.
observed: Option<PolicyCriterionObservation>§policy: EvaluatedPolicy§rule_index: u64Zero-based index into the policy’s rules.
Implementations§
Source§impl UnmatchedPolicyRule
impl UnmatchedPolicyRule
pub fn builder() -> UnmatchedPolicyRule
Trait Implementations§
Source§impl Clone for UnmatchedPolicyRule
impl Clone for UnmatchedPolicyRule
Source§impl Debug for UnmatchedPolicyRule
impl Debug for UnmatchedPolicyRule
Source§impl<'de> Deserialize<'de> for UnmatchedPolicyRule
impl<'de> Deserialize<'de> for UnmatchedPolicyRule
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
Source§impl From<&UnmatchedPolicyRule> for UnmatchedPolicyRule
impl From<&UnmatchedPolicyRule> for UnmatchedPolicyRule
Source§fn from(value: &UnmatchedPolicyRule) -> Self
fn from(value: &UnmatchedPolicyRule) -> Self
Converts to this type from the input type.
Source§impl From<UnmatchedPolicyRule> for UnmatchedPolicyRule
impl From<UnmatchedPolicyRule> for UnmatchedPolicyRule
Source§fn from(value: UnmatchedPolicyRule) -> Self
fn from(value: UnmatchedPolicyRule) -> Self
Converts to this type from the input type.
Source§impl Serialize for UnmatchedPolicyRule
impl Serialize for UnmatchedPolicyRule
Source§impl TryFrom<UnmatchedPolicyRule> for UnmatchedPolicyRule
impl TryFrom<UnmatchedPolicyRule> for UnmatchedPolicyRule
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UnmatchedPolicyRule) -> Result<Self, ConversionError>
fn try_from(value: UnmatchedPolicyRule) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UnmatchedPolicyRule
impl RefUnwindSafe for UnmatchedPolicyRule
impl Send for UnmatchedPolicyRule
impl Sync for UnmatchedPolicyRule
impl Unpin for UnmatchedPolicyRule
impl UnsafeUnpin for UnmatchedPolicyRule
impl UnwindSafe for UnmatchedPolicyRule
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