pub struct BearerToken(pub String);Expand description
Per-request extension carrying the raw inbound bearer (the <token>
from Authorization: Bearer <token>). Inserted by auth_middleware only
after jwt::validate succeeds, so an expired/forged token never leaks
into this extension. Consumed by handlers building a GenContext so an
auth_generator can forward the calling sandbox’s identity to an upstream
MCP via ${JWT_TOKEN} (issue #115).
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for BearerToken
impl Clone for BearerToken
Source§fn clone(&self) -> BearerToken
fn clone(&self) -> BearerToken
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 moreAuto Trait Implementations§
impl Freeze for BearerToken
impl RefUnwindSafe for BearerToken
impl Send for BearerToken
impl Sync for BearerToken
impl Unpin for BearerToken
impl UnsafeUnpin for BearerToken
impl UnwindSafe for BearerToken
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