pub struct PermissionRequestMcp {
pub args: Option<Value>,
pub kind: PermissionRequestMcpKind,
pub read_only: bool,
pub server_name: String,
pub tool_call_id: Option<String>,
pub tool_name: String,
pub tool_title: String,
}Expand description
MCP tool invocation permission request
Fields§
§args: Option<Value>Arguments to pass to the MCP tool
kind: PermissionRequestMcpKindPermission kind discriminator
read_only: boolWhether this MCP tool is read-only (no side effects)
server_name: StringName of the MCP server providing the tool
tool_call_id: Option<String>Tool call ID that triggered this permission request
tool_name: StringInternal name of the MCP tool
tool_title: StringHuman-readable title of the MCP tool
Trait Implementations§
Source§impl Clone for PermissionRequestMcp
impl Clone for PermissionRequestMcp
Source§fn clone(&self) -> PermissionRequestMcp
fn clone(&self) -> PermissionRequestMcp
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 PermissionRequestMcp
impl Debug for PermissionRequestMcp
Source§impl<'de> Deserialize<'de> for PermissionRequestMcp
impl<'de> Deserialize<'de> for PermissionRequestMcp
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 PermissionRequestMcp
impl RefUnwindSafe for PermissionRequestMcp
impl Send for PermissionRequestMcp
impl Sync for PermissionRequestMcp
impl Unpin for PermissionRequestMcp
impl UnsafeUnpin for PermissionRequestMcp
impl UnwindSafe for PermissionRequestMcp
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