pub enum McpAuthResult {
Token {
access_token: String,
token_type: Option<String>,
expires_in: Option<i64>,
},
Cancelled,
}Expand description
Result returned by an MCP auth request handler.
Variants§
Token
Supplies host-acquired OAuth token data.
Fields
Cancelled
Declines or cancels the pending OAuth request.
Trait Implementations§
Source§impl Clone for McpAuthResult
impl Clone for McpAuthResult
Source§fn clone(&self) -> McpAuthResult
fn clone(&self) -> McpAuthResult
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 moreAuto Trait Implementations§
impl Freeze for McpAuthResult
impl RefUnwindSafe for McpAuthResult
impl Send for McpAuthResult
impl Sync for McpAuthResult
impl Unpin for McpAuthResult
impl UnsafeUnpin for McpAuthResult
impl UnwindSafe for McpAuthResult
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