pub struct McpOperation {
pub skip: Option<bool>,
pub readonly: Option<bool>,
pub write: Option<bool>,
pub require: Option<String>,
}Expand description
MCP-specific metadata for an operation.
Serialized under the x-mcp extension in OpenAPI so that MCP tools can
carry permission and confirmation hints.
Fields§
§skip: Option<bool>Skip exposing this operation as an MCP tool entirely.
readonly: Option<bool>Force this operation to be treated as read-only (even if the HTTP method is POST etc.).
write: Option<bool>Explicitly mark as a write operation.
require: Option<String>Agent should ask for confirmation before calling. The value can be “confirm” or a human message.
Trait Implementations§
Source§impl Clone for McpOperation
impl Clone for McpOperation
Source§fn clone(&self) -> McpOperation
fn clone(&self) -> McpOperation
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 McpOperation
impl Debug for McpOperation
Source§impl Default for McpOperation
impl Default for McpOperation
Source§fn default() -> McpOperation
fn default() -> McpOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpOperation
impl<'de> Deserialize<'de> for McpOperation
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 McpOperation
impl RefUnwindSafe for McpOperation
impl Send for McpOperation
impl Sync for McpOperation
impl Unpin for McpOperation
impl UnsafeUnpin for McpOperation
impl UnwindSafe for McpOperation
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