pub struct McpOAuthConfig {
pub authorization_url: String,
pub token_url: String,
pub client_id: String,
pub scopes: Vec<String>,
pub callback_port: u16,
pub credentials_store_mode: AuthCredentialsStoreMode,
/* private fields */
}Expand description
Configuration for OAuth-enabled MCP HTTP providers.
Fields§
OAuth authorization endpoint.
token_url: StringOAuth token endpoint.
client_id: StringOAuth client identifier.
scopes: Vec<String>Requested scopes.
callback_port: u16Local callback server port.
credentials_store_mode: AuthCredentialsStoreModeCredential storage backend for this provider’s token.
Trait Implementations§
Source§impl Clone for McpOAuthConfig
impl Clone for McpOAuthConfig
Source§fn clone(&self) -> McpOAuthConfig
fn clone(&self) -> McpOAuthConfig
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 McpOAuthConfig
impl Debug for McpOAuthConfig
Source§impl Default for McpOAuthConfig
impl Default for McpOAuthConfig
Source§impl<'de> Deserialize<'de> for McpOAuthConfigwhere
McpOAuthConfig: Default,
impl<'de> Deserialize<'de> for McpOAuthConfigwhere
McpOAuthConfig: Default,
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
Auto Trait Implementations§
impl Freeze for McpOAuthConfig
impl RefUnwindSafe for McpOAuthConfig
impl Send for McpOAuthConfig
impl Sync for McpOAuthConfig
impl Unpin for McpOAuthConfig
impl UnsafeUnpin for McpOAuthConfig
impl UnwindSafe for McpOAuthConfig
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