pub struct McpAuthContext {
pub auth_context: Option<AuthContext>,
pub client_ip: Option<String>,
pub auth_method: Option<String>,
pub is_anonymous: bool,
}
Expand description
Authentication context extracted from request
Fields§
§auth_context: Option<AuthContext>
Authenticated API key context
client_ip: Option<String>
Client IP address
auth_method: Option<String>
Authentication method used
is_anonymous: bool
Whether the request is anonymous
Trait Implementations§
Source§impl Clone for McpAuthContext
impl Clone for McpAuthContext
Source§fn clone(&self) -> McpAuthContext
fn clone(&self) -> McpAuthContext
Returns a duplicate of the value. Read more
1.0.0 · 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 McpAuthContext
impl RefUnwindSafe for McpAuthContext
impl Send for McpAuthContext
impl Sync for McpAuthContext
impl Unpin for McpAuthContext
impl UnwindSafe for McpAuthContext
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