pub struct McpOauthAuthenticationStateChangedRequest {
pub refresh_session_token: Option<bool>,
pub server_name: Option<String>,
}Expand description
Identifies the MCP server whose persisted OAuth credentials were updated.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§refresh_session_token: Option<bool>Whether the target session must mint a session-scoped access token instead of reusing a shared access token persisted by another session.
server_name: Option<String>Name of the MCP server whose OAuth credentials were updated. Omit only when the host cannot identify the server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpOauthAuthenticationStateChangedRequest
impl<'de> Deserialize<'de> for McpOauthAuthenticationStateChangedRequest
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 McpOauthAuthenticationStateChangedRequest
impl RefUnwindSafe for McpOauthAuthenticationStateChangedRequest
impl Send for McpOauthAuthenticationStateChangedRequest
impl Sync for McpOauthAuthenticationStateChangedRequest
impl Unpin for McpOauthAuthenticationStateChangedRequest
impl UnsafeUnpin for McpOauthAuthenticationStateChangedRequest
impl UnwindSafe for McpOauthAuthenticationStateChangedRequest
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