pub enum AuthScheme {
Bearer,
Dpop,
}Expand description
The scheme of the Authorization header sent to the MCP server. The DPoP
proof header is sent with either.
Variants§
Bearer
Authorization: Bearer <token>, as the MCP specification requires.
Dpop
Authorization: DPoP <token> (RFC 9449 §7.1), for servers that insist.
Trait Implementations§
Source§impl Clone for AuthScheme
impl Clone for AuthScheme
Source§fn clone(&self) -> AuthScheme
fn clone(&self) -> AuthScheme
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 moreimpl Copy for AuthScheme
Source§impl Debug for AuthScheme
impl Debug for AuthScheme
Source§impl Default for AuthScheme
impl Default for AuthScheme
Source§fn default() -> AuthScheme
fn default() -> AuthScheme
Returns the “default value” for a type. Read more
impl Eq for AuthScheme
Source§impl PartialEq for AuthScheme
impl PartialEq for AuthScheme
impl StructuralPartialEq for AuthScheme
Source§impl ValueEnum for AuthScheme
impl ValueEnum for AuthScheme
Auto Trait Implementations§
impl Freeze for AuthScheme
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnsafeUnpin for AuthScheme
impl UnwindSafe for AuthScheme
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.