pub enum AuthMode {
Enabled(String),
Disabled,
}Expand description
Resolved authentication mode for the HTTP transport.
Variants§
Enabled(String)
Enforce this bearer token on every /mcp request.
Disabled
Auth disabled. Reachable only via the loopback-only --no-auth escape hatch.
Trait Implementations§
Source§impl Debug for AuthMode
Prints Enabled([REDACTED]) rather than the token, so neither this nor
ResolvedAuth or HttpOptions, whose derived
Debug goes through it, can carry the token into a log line or a panic
message.
impl Debug for AuthMode
Prints Enabled([REDACTED]) rather than the token, so neither this nor
ResolvedAuth or HttpOptions, whose derived
Debug goes through it, can carry the token into a log line or a panic
message.
Auto Trait Implementations§
impl Freeze for AuthMode
impl RefUnwindSafe for AuthMode
impl Send for AuthMode
impl Sync for AuthMode
impl Unpin for AuthMode
impl UnsafeUnpin for AuthMode
impl UnwindSafe for AuthMode
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