pub enum AuthOperation {
McpConnect {
server_id: String,
metadata: MetadataMap,
},
McpToolCall {
server_id: String,
tool_name: String,
input: Value,
metadata: MetadataMap,
},
McpResourceRead {
server_id: String,
resource_id: String,
metadata: MetadataMap,
},
McpPromptGet {
server_id: String,
prompt_id: String,
args: Value,
metadata: MetadataMap,
},
McpOther {
server_id: String,
method: String,
params: Value,
metadata: MetadataMap,
},
}Expand description
The MCP operation that triggered an AuthRequest.
Variants§
McpConnect
Connecting to an MCP server.
McpToolCall
Invoking a tool on an MCP server.
McpResourceRead
Reading a resource from an MCP server.
McpPromptGet
Fetching a prompt from an MCP server.
McpOther
Any other MCP method that requires auth (resource subscribe/unsubscribe, logging level changes, future protocol additions). The typed variants above cover the common cases; this catch-all preserves the method name and JSON params verbatim for hosts that need to render or log them.
Implementations§
Trait Implementations§
Source§impl Clone for AuthOperation
impl Clone for AuthOperation
Source§fn clone(&self) -> AuthOperation
fn clone(&self) -> AuthOperation
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 AuthOperation
impl Debug for AuthOperation
Source§impl<'de> Deserialize<'de> for AuthOperation
impl<'de> Deserialize<'de> for AuthOperation
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
impl Eq for AuthOperation
Source§impl PartialEq for AuthOperation
impl PartialEq for AuthOperation
Source§fn eq(&self, other: &AuthOperation) -> bool
fn eq(&self, other: &AuthOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthOperation
impl Serialize for AuthOperation
impl StructuralPartialEq for AuthOperation
Auto Trait Implementations§
impl Freeze for AuthOperation
impl RefUnwindSafe for AuthOperation
impl Send for AuthOperation
impl Sync for AuthOperation
impl Unpin for AuthOperation
impl UnsafeUnpin for AuthOperation
impl UnwindSafe for AuthOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.