pub enum Authorization {
None,
}Expand description
Authorization handling for MCP server operations
This enum combines the authorization mode with the actual header value, ensuring type safety and a cleaner API.
Variants§
None
No authorization header will be forwarded (MCP-compliant)
Implementations§
Source§impl Authorization
impl Authorization
Sourcepub fn from_mode(
mode: AuthorizationMode,
header: Option<AuthorizationHeader>,
) -> Self
pub fn from_mode( mode: AuthorizationMode, header: Option<AuthorizationHeader>, ) -> Self
Create Authorization from a mode and optional header
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
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 moreSource§impl Debug for Authorization
impl Debug for Authorization
Source§impl Default for Authorization
impl Default for Authorization
Source§fn default() -> Authorization
fn default() -> Authorization
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
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