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 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§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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
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
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> 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>
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