pub struct BearerAuthContext {
pub client_addr: SocketAddr,
pub route: String,
pub action: String,
}Expand description
Per-request context passed to a dynamic bearer-token authorizer.
Fields§
§client_addr: SocketAddrClient socket address reported by the HTTP framework.
route: StringHTTP route that received the request.
action: StringMCP method or legacy action being authorized.
Trait Implementations§
Source§impl Clone for BearerAuthContext
impl Clone for BearerAuthContext
Source§fn clone(&self) -> BearerAuthContext
fn clone(&self) -> BearerAuthContext
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 BearerAuthContext
impl Debug for BearerAuthContext
Source§impl PartialEq for BearerAuthContext
impl PartialEq for BearerAuthContext
Source§fn eq(&self, other: &BearerAuthContext) -> bool
fn eq(&self, other: &BearerAuthContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BearerAuthContext
impl StructuralPartialEq for BearerAuthContext
Auto Trait Implementations§
impl Freeze for BearerAuthContext
impl RefUnwindSafe for BearerAuthContext
impl Send for BearerAuthContext
impl Sync for BearerAuthContext
impl Unpin for BearerAuthContext
impl UnsafeUnpin for BearerAuthContext
impl UnwindSafe for BearerAuthContext
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.