pub struct AuthzRequest {
pub entity: EntityRef,
pub user_id: UserId,
pub roles: Vec<String>,
pub attributes: BTreeMap<String, Value>,
pub trace_id: TraceId,
pub session_id: Option<SessionId>,
pub context: AuthzContext,
pub context_id: Option<ContextId>,
pub task_id: Option<TaskId>,
pub act_chain: Vec<Actor>,
}Fields§
§entity: EntityRef§user_id: UserId§roles: Vec<String>§attributes: BTreeMap<String, Value>Opaque ABAC attribute bag forwarded from JwtClaims.attributes.
Tenants namespace keys (e.g. "acme.desk", "boeing.clearance");
core never interprets values.
trace_id: TraceId§session_id: Option<SessionId>Attested session this authorization request was made under, when the
enforcement site has one (gateway path). Threaded into the audit row’s
session_id column; non-session paths (server-attach RBAC, MCP) leave
it None.
context: AuthzContext§context_id: Option<ContextId>A2A conversation the enforcement site is acting within, when it has
one (gateway-derived conversation, MCP tool-call execution context,
messaging). Threaded into the audit row’s context_id column so agent
conversations reconstruct by key instead of user+time-window joins.
task_id: Option<TaskId>A2A task the enforcement site is acting within, when one exists
(internal agent tool-calls). Threaded into the audit row’s task_id
column.
act_chain: Vec<Actor>RFC 8693 delegation lineage forwarded from
RequestContext.auth.act_chain. Empty when no token-exchange chain
is present.
Trait Implementations§
Source§impl Clone for AuthzRequest
impl Clone for AuthzRequest
Source§fn clone(&self) -> AuthzRequest
fn clone(&self) -> AuthzRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthzRequest
impl Debug for AuthzRequest
Source§impl<'de> Deserialize<'de> for AuthzRequest
impl<'de> Deserialize<'de> for AuthzRequest
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>,
Auto Trait Implementations§
impl Freeze for AuthzRequest
impl RefUnwindSafe for AuthzRequest
impl Send for AuthzRequest
impl Sync for AuthzRequest
impl Unpin for AuthzRequest
impl UnsafeUnpin for AuthzRequest
impl UnwindSafe for AuthzRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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