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§
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