pub struct DecisionRecord {Show 16 fields
pub id: String,
pub timestamp: DateTime<Utc>,
pub effect: String,
pub policies: Vec<String>,
pub request_id: Option<String>,
pub principal: String,
pub action: String,
pub resource: String,
pub reasons: Vec<String>,
pub session_id: Option<String>,
pub agent_chain: Option<Vec<String>>,
pub trace_id: Option<TraceId>,
pub span_id: Option<SpanId>,
pub tenant_id: Option<String>,
pub subject_id: Option<String>,
pub authenticated_actor: Option<AuthenticatedActor>,
}Expand description
Structured record written for every authorization decision.
Old readers (v1) ignore all unknown fields, so adding fields is backward-compatible at the JSON level.
Fields§
§id: String§timestamp: DateTime<Utc>§effect: String§policies: Vec<String>§request_id: Option<String>§principal: String§action: String§resource: String§reasons: Vec<String>§session_id: Option<String>§agent_chain: Option<Vec<String>>§trace_id: Option<TraceId>W3C Trace Context trace ID, propagated from the request.
span_id: Option<SpanId>W3C Trace Context span ID, propagated from the request.
tenant_id: Option<String>Tenant ID for multi-tenant deployments.
subject_id: Option<String>Subject ID for SAR queries (GDPR Art. 15).
authenticated_actor: Option<AuthenticatedActor>Authenticated PDP caller. This is server-added audit metadata and is intentionally separate from Cedar context and the evaluated principal.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionRecord
impl Clone for DecisionRecord
Source§fn clone(&self) -> DecisionRecord
fn clone(&self) -> DecisionRecord
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 DecisionRecord
impl Debug for DecisionRecord
Source§impl<'de> Deserialize<'de> for DecisionRecord
impl<'de> Deserialize<'de> for DecisionRecord
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 DecisionRecord
impl RefUnwindSafe for DecisionRecord
impl Send for DecisionRecord
impl Sync for DecisionRecord
impl Unpin for DecisionRecord
impl UnwindSafe for DecisionRecord
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more