pub enum McpServerConfigHttpOauthGrantType {
AuthorizationCode,
ClientCredentials,
Unknown,
}Expand description
OAuth grant type to use when authenticating to the remote MCP server.
Variants§
AuthorizationCode
Interactive browser-based authorization code flow with PKCE.
ClientCredentials
Headless client credentials flow using the configured OAuth client.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for McpServerConfigHttpOauthGrantType
impl Clone for McpServerConfigHttpOauthGrantType
Source§fn clone(&self) -> McpServerConfigHttpOauthGrantType
fn clone(&self) -> McpServerConfigHttpOauthGrantType
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 Default for McpServerConfigHttpOauthGrantType
impl Default for McpServerConfigHttpOauthGrantType
Source§fn default() -> McpServerConfigHttpOauthGrantType
fn default() -> McpServerConfigHttpOauthGrantType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpServerConfigHttpOauthGrantType
impl<'de> Deserialize<'de> for McpServerConfigHttpOauthGrantType
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 McpServerConfigHttpOauthGrantType
Source§impl PartialEq for McpServerConfigHttpOauthGrantType
impl PartialEq for McpServerConfigHttpOauthGrantType
Source§fn eq(&self, other: &McpServerConfigHttpOauthGrantType) -> bool
fn eq(&self, other: &McpServerConfigHttpOauthGrantType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for McpServerConfigHttpOauthGrantType
Auto Trait Implementations§
impl Freeze for McpServerConfigHttpOauthGrantType
impl RefUnwindSafe for McpServerConfigHttpOauthGrantType
impl Send for McpServerConfigHttpOauthGrantType
impl Sync for McpServerConfigHttpOauthGrantType
impl Unpin for McpServerConfigHttpOauthGrantType
impl UnsafeUnpin for McpServerConfigHttpOauthGrantType
impl UnwindSafe for McpServerConfigHttpOauthGrantType
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