pub enum BackendAuthMode {
Auto,
ExplicitHeaders,
OAuth,
}Expand description
Authentication strategy for a remote upstream MCP server.
Variants§
Auto
Match Python parity: explicit Authorization headers are used as-is;
otherwise native OAuth should be attempted for remote HTTP backends.
ExplicitHeaders
Use explicit backend headers only; never start OAuth.
OAuth
Force native OAuth.
Trait Implementations§
Source§impl Clone for BackendAuthMode
impl Clone for BackendAuthMode
Source§fn clone(&self) -> BackendAuthMode
fn clone(&self) -> BackendAuthMode
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 moreSource§impl Debug for BackendAuthMode
impl Debug for BackendAuthMode
Source§impl Default for BackendAuthMode
impl Default for BackendAuthMode
Source§fn default() -> BackendAuthMode
fn default() -> BackendAuthMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendAuthMode
impl PartialEq for BackendAuthMode
Source§fn eq(&self, other: &BackendAuthMode) -> bool
fn eq(&self, other: &BackendAuthMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackendAuthMode
impl Eq for BackendAuthMode
impl StructuralPartialEq for BackendAuthMode
Auto Trait Implementations§
impl Freeze for BackendAuthMode
impl RefUnwindSafe for BackendAuthMode
impl Send for BackendAuthMode
impl Sync for BackendAuthMode
impl Unpin for BackendAuthMode
impl UnsafeUnpin for BackendAuthMode
impl UnwindSafe for BackendAuthMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.