pub struct McpOauthRequiredData {
pub request_id: RequestId,
pub server_name: String,
pub server_url: String,
pub static_client_config: Option<McpOauthRequiredStaticClientConfig>,
}Expand description
OAuth authentication request for an MCP server
Fields§
§request_id: RequestIdUnique identifier for this OAuth request; used to respond via session.respondToMcpOAuth()
server_name: StringDisplay name of the MCP server that requires OAuth
server_url: StringURL of the MCP server that requires OAuth
static_client_config: Option<McpOauthRequiredStaticClientConfig>Static OAuth client configuration, if the server specifies one
Trait Implementations§
Source§impl Clone for McpOauthRequiredData
impl Clone for McpOauthRequiredData
Source§fn clone(&self) -> McpOauthRequiredData
fn clone(&self) -> McpOauthRequiredData
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 McpOauthRequiredData
impl Debug for McpOauthRequiredData
Source§impl<'de> Deserialize<'de> for McpOauthRequiredData
impl<'de> Deserialize<'de> for McpOauthRequiredData
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 McpOauthRequiredData
impl RefUnwindSafe for McpOauthRequiredData
impl Send for McpOauthRequiredData
impl Sync for McpOauthRequiredData
impl Unpin for McpOauthRequiredData
impl UnsafeUnpin for McpOauthRequiredData
impl UnwindSafe for McpOauthRequiredData
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