pub struct McpApprovalRequest {
pub id: String,
pub server_label: String,
pub name: String,
pub arguments: String,
}
Expand description
A request for human approval of a tool invocation.
Fields§
§id: String
The unique ID of the approval request.
server_label: String
The label of the MCP server making the request.
name: String
The name of the tool to run.
arguments: String
A JSON string of arguments for the tool.
Implementations§
Trait Implementations§
Source§impl Clone for McpApprovalRequest
impl Clone for McpApprovalRequest
Source§fn clone(&self) -> McpApprovalRequest
fn clone(&self) -> McpApprovalRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for McpApprovalRequest
impl Debug for McpApprovalRequest
Source§impl<'de> Deserialize<'de> for McpApprovalRequest
impl<'de> Deserialize<'de> for McpApprovalRequest
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 McpApprovalRequest
impl PartialEq for McpApprovalRequest
Source§impl Serialize for McpApprovalRequest
impl Serialize for McpApprovalRequest
impl StructuralPartialEq for McpApprovalRequest
Auto Trait Implementations§
impl Freeze for McpApprovalRequest
impl RefUnwindSafe for McpApprovalRequest
impl Send for McpApprovalRequest
impl Sync for McpApprovalRequest
impl Unpin for McpApprovalRequest
impl UnwindSafe for McpApprovalRequest
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