pub struct McpToolAnnotations {
pub read_only: Option<bool>,
pub destructive: Option<bool>,
pub open_world: Option<bool>,
}Expand description
Tool annotations returned in MCP status payloads.
Fields§
§read_only: Option<bool>Whether the tool is read-only.
destructive: Option<bool>Whether the tool is destructive.
open_world: Option<bool>Whether the tool interacts with open-world/external systems.
Trait Implementations§
Source§impl Clone for McpToolAnnotations
impl Clone for McpToolAnnotations
Source§fn clone(&self) -> McpToolAnnotations
fn clone(&self) -> McpToolAnnotations
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 McpToolAnnotations
impl Debug for McpToolAnnotations
Source§impl Default for McpToolAnnotations
impl Default for McpToolAnnotations
Source§fn default() -> McpToolAnnotations
fn default() -> McpToolAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpToolAnnotations
impl<'de> Deserialize<'de> for McpToolAnnotations
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 McpToolAnnotations
impl PartialEq for McpToolAnnotations
Source§impl Serialize for McpToolAnnotations
impl Serialize for McpToolAnnotations
impl Eq for McpToolAnnotations
impl StructuralPartialEq for McpToolAnnotations
Auto Trait Implementations§
impl Freeze for McpToolAnnotations
impl RefUnwindSafe for McpToolAnnotations
impl Send for McpToolAnnotations
impl Sync for McpToolAnnotations
impl Unpin for McpToolAnnotations
impl UnsafeUnpin for McpToolAnnotations
impl UnwindSafe for McpToolAnnotations
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