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 Clone for McpOauthAuthenticationStateChangedRequest
impl Clone for McpOauthAuthenticationStateChangedRequest
Source§fn clone(&self) -> McpOauthAuthenticationStateChangedRequest
fn clone(&self) -> McpOauthAuthenticationStateChangedRequest
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 McpOauthAuthenticationStateChangedRequest
impl Default for McpOauthAuthenticationStateChangedRequest
Source§fn default() -> McpOauthAuthenticationStateChangedRequest
fn default() -> McpOauthAuthenticationStateChangedRequest
Returns the “default value” for a type. Read more
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