pub struct EvaluatedPolicy {
pub id: EvaluatedPolicyId,
pub scope: EvaluatedPolicyScope,
pub updated_at: DateTime<Utc>,
}Expand description
A policy consulted during evaluation, at the version evaluated.
JSON schema
{
"description": "A policy consulted during evaluation, at the version evaluated.",
"examples": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"scope": "project",
"updatedAt": "2026-09-01T12:00:00Z"
}
],
"type": "object",
"required": [
"id",
"scope",
"updatedAt"
],
"properties": {
"id": {
"description": "The ID of the policy.",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
},
"scope": {
"description": "The scope of the policy.",
"examples": [
"project"
],
"type": "string",
"enum": [
"project",
"account"
],
"x-go-type": "PolicyScope"
},
"updatedAt": {
"description": "The version of the policy evaluated. Rule and criterion indices refer to this version.",
"examples": [
"2026-09-01T12:00:00Z"
],
"type": "string",
"format": "date-time"
}
}
}Fields§
§id: EvaluatedPolicyIdThe ID of the policy.
scope: EvaluatedPolicyScopeThe scope of the policy.
updated_at: DateTime<Utc>The version of the policy evaluated. Rule and criterion indices refer to this version.
Implementations§
Source§impl EvaluatedPolicy
impl EvaluatedPolicy
pub fn builder() -> EvaluatedPolicy
Trait Implementations§
Source§impl Clone for EvaluatedPolicy
impl Clone for EvaluatedPolicy
Source§impl Debug for EvaluatedPolicy
impl Debug for EvaluatedPolicy
Source§impl<'de> Deserialize<'de> for EvaluatedPolicy
impl<'de> Deserialize<'de> for EvaluatedPolicy
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<&EvaluatedPolicy> for EvaluatedPolicy
impl From<&EvaluatedPolicy> for EvaluatedPolicy
Source§fn from(value: &EvaluatedPolicy) -> Self
fn from(value: &EvaluatedPolicy) -> Self
Converts to this type from the input type.
Source§impl From<EvaluatedPolicy> for EvaluatedPolicy
impl From<EvaluatedPolicy> for EvaluatedPolicy
Source§fn from(value: EvaluatedPolicy) -> Self
fn from(value: EvaluatedPolicy) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvaluatedPolicy
impl Serialize for EvaluatedPolicy
Source§impl TryFrom<EvaluatedPolicy> for EvaluatedPolicy
impl TryFrom<EvaluatedPolicy> for EvaluatedPolicy
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvaluatedPolicy) -> Result<Self, ConversionError>
fn try_from(value: EvaluatedPolicy) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvaluatedPolicy
impl RefUnwindSafe for EvaluatedPolicy
impl Send for EvaluatedPolicy
impl Sync for EvaluatedPolicy
impl Unpin for EvaluatedPolicy
impl UnsafeUnpin for EvaluatedPolicy
impl UnwindSafe for EvaluatedPolicy
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