pub struct RequestContext<'a> {
pub web_id: Option<&'a str>,
pub client_id: Option<&'a str>,
pub issuer: Option<&'a str>,
}Expand description
Minimal request context passed to every condition evaluator.
Borrowed so the caller does not have to allocate on the hot path.
Fields§
§web_id: Option<&'a str>Authenticated WebID, if any (Some for logged-in requests,
None for anonymous).
client_id: Option<&'a str>OAuth/OIDC client identifier from the access token’s azp /
client_id claim (or DPoP key thumbprint bound WebID).
issuer: Option<&'a str>Token issuer — the iss claim.
Trait Implementations§
Source§impl<'a> Clone for RequestContext<'a>
impl<'a> Clone for RequestContext<'a>
Source§fn clone(&self) -> RequestContext<'a>
fn clone(&self) -> RequestContext<'a>
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<'a> Debug for RequestContext<'a>
impl<'a> Debug for RequestContext<'a>
impl<'a> Copy for RequestContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestContext<'a>
impl<'a> RefUnwindSafe for RequestContext<'a>
impl<'a> Send for RequestContext<'a>
impl<'a> Sync for RequestContext<'a>
impl<'a> Unpin for RequestContext<'a>
impl<'a> UnsafeUnpin for RequestContext<'a>
impl<'a> UnwindSafe for RequestContext<'a>
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