Skip to main content

Crate component_shape

Crate component_shape 

Source
Expand description

Framework-neutral component shape metadata and naming utilities.

McpInput describes model-controlled structured input at the metadata level. Protocol handling and JSON Schema helpers live in component-shape-mcp.

Structs§

ComponentCapabilities
Shape-owned capability flags consumed by generators and integrations.
ComponentFieldName
Typed borrowed source field name used in component shape metadata.
ComponentPrototyping
Shape-owned metadata for prototyping generators.
ComponentShapeUse
Framework-neutral metadata describing a field’s component shape use.
ComponentSuffix
Preferred generated component helper suffix.
ComponentSuffixError
Error returned when component suffix validation rejects a value.
McpInput
Shape-owned metadata for model-controlled MCP input.
RustExpr
Rust expression syntax stored as static metadata.
RustPath
Rust path syntax stored as static metadata.
RustSyntaxError
Error returned when Rust syntax metadata fails to parse.
RustType
Rust type syntax stored as static metadata.

Enums§

McpInputShape
Framework-neutral shape of structured MCP input accepted by a component.
McpPrimitiveKind
Primitive value kinds a component shape can expose to model-controlled tools.
McpRangeBoundKind
Primitive kinds that can be used as { "min": ..., "max": ... } MCP range bounds.
McpToolMetadataError
Validation error for generated MCP tool metadata.
RenderCapability
Whether a component shape publishes render-component metadata.
RustSyntaxKind
Kind of Rust syntax stored as static metadata.
ValueBindingCapability
Whether a component shape publishes value-binding metadata.
ValueChange
Normalized value change derived from a component event.

Traits§

ComponentShapeFor
Marker that a component shape supports a value or field type.
ComponentShapeMetadata
Framework-neutral metadata published by a component shape.
DeclaredComponentShape
Marker for component shapes declared through a trusted declaration surface.

Functions§

component_suffix_from_suffix
Derive a generated helper suffix from a field name and shape suffix source.
is_valid_component_suffix
Returns whether a component/prototyping suffix is valid.
validate_component_suffix
Validate a component/prototyping suffix.
validate_mcp_tool_metadata_text
Validate human-readable MCP tool metadata text.
validate_mcp_tool_name
Validate the MCP tool-name subset used by generated integrations.