pub enum AuthOperation {
ToolCall {
tool_name: String,
input: Value,
call_id: Option<ToolCallId>,
session_id: Option<SessionId>,
turn_id: Option<TurnId>,
metadata: MetadataMap,
},
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,
},
Custom {
kind: String,
payload: Value,
metadata: MetadataMap,
},
}Variants§
ToolCall
McpConnect
McpToolCall
McpResourceRead
McpPromptGet
Custom
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 · 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
Source§impl PartialEq for AuthOperation
impl PartialEq for AuthOperation
Source§impl Serialize for AuthOperation
impl Serialize for AuthOperation
impl Eq 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