pub struct PermissionDecisionApproveForSessionApprovalMcp {
pub kind: PermissionDecisionApproveForSessionApprovalMcpKind,
pub server_name: String,
pub tool_name: Option<String>,
}Expand description
Session-scoped approval details for an MCP server tool, or all tools on the server when toolName is null.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§kind: PermissionDecisionApproveForSessionApprovalMcpKindApproval covering an MCP tool.
server_name: StringMCP server name.
tool_name: Option<String>MCP tool name, or null to cover every tool on the server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PermissionDecisionApproveForSessionApprovalMcp
impl<'de> Deserialize<'de> for PermissionDecisionApproveForSessionApprovalMcp
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 PermissionDecisionApproveForSessionApprovalMcp
impl RefUnwindSafe for PermissionDecisionApproveForSessionApprovalMcp
impl Send for PermissionDecisionApproveForSessionApprovalMcp
impl Sync for PermissionDecisionApproveForSessionApprovalMcp
impl Unpin for PermissionDecisionApproveForSessionApprovalMcp
impl UnsafeUnpin for PermissionDecisionApproveForSessionApprovalMcp
impl UnwindSafe for PermissionDecisionApproveForSessionApprovalMcp
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