pub struct McpAuthConfig {
pub auth_type: Option<String>,
pub token: Option<String>,
pub header: Option<String>,
pub api_key: Option<String>,
}Expand description
Optional auth block on a remote MCP server (sse / http transports).
Fields§
§auth_type: Option<String>bearer or apiKey (case-insensitive).
token: Option<String>Bearer token, or full Bearer <token> value. Supports ${ENV}.
header: Option<String>Header name for API-key auth (default X-API-Key).
api_key: Option<String>API key value. Supports ${ENV}. Accepts apiKey alias in JSON.
Trait Implementations§
Source§impl Clone for McpAuthConfig
impl Clone for McpAuthConfig
Source§fn clone(&self) -> McpAuthConfig
fn clone(&self) -> McpAuthConfig
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 McpAuthConfig
impl Debug for McpAuthConfig
Source§impl Default for McpAuthConfig
impl Default for McpAuthConfig
Source§fn default() -> McpAuthConfig
fn default() -> McpAuthConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpAuthConfig
impl<'de> Deserialize<'de> for McpAuthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for McpAuthConfig
Source§impl PartialEq for McpAuthConfig
impl PartialEq for McpAuthConfig
Source§fn eq(&self, other: &McpAuthConfig) -> bool
fn eq(&self, other: &McpAuthConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for McpAuthConfig
impl Serialize for McpAuthConfig
impl StructuralPartialEq for McpAuthConfig
Auto Trait Implementations§
impl Freeze for McpAuthConfig
impl RefUnwindSafe for McpAuthConfig
impl Send for McpAuthConfig
impl Sync for McpAuthConfig
impl Unpin for McpAuthConfig
impl UnsafeUnpin for McpAuthConfig
impl UnwindSafe for McpAuthConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.