#[repr(C)]pub struct CommandAnnotations {
pub read_only: bool,
pub destructive: bool,
pub idempotent: bool,
pub open_world: bool,
}Expand description
Behavioral hints surfaced to MCP and other LLM-facing
surfaces. All four follow the MCP convention. When absent
the surface treats them as untrusted defaults
(destructive: true, open-world: true, read-only: false,
idempotent: false), per MCP guidance.
Fields§
§read_only: boolTool performs no destructive updates; safe to call freely.
destructive: boolTool may delete or overwrite (default true per MCP semantics).
idempotent: boolRepeated calls with the same input have the same effect.
open_world: boolTool reaches outside the host’s controlled environment (network calls, external APIs, the open world).
Trait Implementations§
Source§impl Clone for CommandAnnotations
impl Clone for CommandAnnotations
Source§fn clone(&self) -> CommandAnnotations
fn clone(&self) -> CommandAnnotations
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 moreimpl Copy for CommandAnnotations
Source§impl Debug for CommandAnnotations
impl Debug for CommandAnnotations
Source§impl From<&CommandAnnotations> for CommandAnnotations
impl From<&CommandAnnotations> for CommandAnnotations
Source§fn from(a: &CommandAnnotations) -> CommandAnnotations
fn from(a: &CommandAnnotations) -> CommandAnnotations
Converts to this type from the input type.
Source§impl From<&CommandAnnotations> for CommandAnnotations
impl From<&CommandAnnotations> for CommandAnnotations
Source§fn from(a: &CommandAnnotations) -> CommandAnnotations
fn from(a: &CommandAnnotations) -> CommandAnnotations
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommandAnnotations
impl RefUnwindSafe for CommandAnnotations
impl Send for CommandAnnotations
impl Sync for CommandAnnotations
impl Unpin for CommandAnnotations
impl UnsafeUnpin for CommandAnnotations
impl UnwindSafe for CommandAnnotations
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