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, following the MCP convention.
Fields§
§read_only: bool§destructive: bool§idempotent: bool§open_world: boolTrait Implementations§
Source§impl Clone for CommandAnnotations
impl Clone for CommandAnnotations
impl Copy for CommandAnnotations
Source§impl Debug for CommandAnnotations
impl Debug for CommandAnnotations
Source§impl<'de> Deserialize<'de> for CommandAnnotations
impl<'de> Deserialize<'de> for CommandAnnotations
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
impl Eq for CommandAnnotations
Source§impl FromSchema for CommandAnnotations
impl FromSchema for CommandAnnotations
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl IntoSchema for CommandAnnotations
impl IntoSchema for CommandAnnotations
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for CommandAnnotations
impl PartialEq for CommandAnnotations
Source§impl Serialize for CommandAnnotations
impl Serialize for CommandAnnotations
impl StructuralPartialEq for CommandAnnotations
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