pub struct RequestAttrs<'a> {
pub tenant: Option<&'a PartitionId>,
pub index: &'a str,
pub principal: &'a PrincipalId,
pub endpoint: EndpointKind,
}Expand description
The attributes of a request, evaluated against directive matches. The tenant is optional because it is only known after partition resolution.
Fields§
§tenant: Option<&'a PartitionId>The resolved partition, if resolution has happened.
index: &'a strThe logical index from the request path.
principal: &'a PrincipalIdThe authenticated principal.
endpoint: EndpointKindThe endpoint classification.
Trait Implementations§
Source§impl<'a> Clone for RequestAttrs<'a>
impl<'a> Clone for RequestAttrs<'a>
Source§fn clone(&self) -> RequestAttrs<'a>
fn clone(&self) -> RequestAttrs<'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 moreimpl<'a> Copy for RequestAttrs<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestAttrs<'a>
impl<'a> RefUnwindSafe for RequestAttrs<'a>
impl<'a> Send for RequestAttrs<'a>
impl<'a> Sync for RequestAttrs<'a>
impl<'a> Unpin for RequestAttrs<'a>
impl<'a> UnsafeUnpin for RequestAttrs<'a>
impl<'a> UnwindSafe for RequestAttrs<'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