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
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<'de> Deserialize<'de> for CommandAnnotations
impl<'de> Deserialize<'de> for CommandAnnotations
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandAnnotations, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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.
Source§impl FromSchema for CommandAnnotations
impl FromSchema for CommandAnnotations
fn from_value( value: &SchemaValue, ) -> Result<CommandAnnotations, 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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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