pub struct McpOauthRequiredStaticClientConfig {
pub client_id: String,
pub grant_type: Option<McpOauthRequiredStaticClientConfigGrantType>,
pub public_client: Option<bool>,
}Expand description
Static OAuth client configuration, if the server specifies one
Fields§
§client_id: StringOAuth client ID for the server
grant_type: Option<McpOauthRequiredStaticClientConfigGrantType>Optional non-default OAuth grant type. When set to ‘client_credentials’, the OAuth flow runs headlessly using the client_id + keychain-stored secret (no browser, no callback server).
public_client: Option<bool>Whether this is a public OAuth client
Trait Implementations§
Source§impl Clone for McpOauthRequiredStaticClientConfig
impl Clone for McpOauthRequiredStaticClientConfig
Source§fn clone(&self) -> McpOauthRequiredStaticClientConfig
fn clone(&self) -> McpOauthRequiredStaticClientConfig
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<'de> Deserialize<'de> for McpOauthRequiredStaticClientConfig
impl<'de> Deserialize<'de> for McpOauthRequiredStaticClientConfig
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 McpOauthRequiredStaticClientConfig
impl RefUnwindSafe for McpOauthRequiredStaticClientConfig
impl Send for McpOauthRequiredStaticClientConfig
impl Sync for McpOauthRequiredStaticClientConfig
impl Unpin for McpOauthRequiredStaticClientConfig
impl UnsafeUnpin for McpOauthRequiredStaticClientConfig
impl UnwindSafe for McpOauthRequiredStaticClientConfig
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