Skip to main content

ComponentShapeFor

Trait ComponentShapeFor 

Source
pub trait ComponentShapeFor<Value>: ComponentShapeMetadata {
    const MCP_INPUT: McpInput = <Self as ComponentShapeMetadata>::MCP_INPUT;
}
Expand description

Marker that a component shape supports a value or field type.

Backend-specific compatibility traits can extend or pair with this marker while keeping backend-owned methods and diagnostics on their own traits. The value-specific MCP input inherits the shape-level MCP input by default, and declaration macros may emit a more precise value-specific override for simple JSON-compatible value shapes.

Provided Associated Constants§

Source

const MCP_INPUT: McpInput = <Self as ComponentShapeMetadata>::MCP_INPUT

Coarse model-controlled input metadata for this shape/value pair.

This inherits ComponentShapeMetadata::MCP_INPUT unless the pair publishes a more precise value-specific shape.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§