Expand description
Runtime traits and helper types for component shapes.
Runtime storage policy used by #[derive(GpuiForm)].
Component shape construction, rendering, supported value types, and value
binding are provided by component-shape and component-shape-gpui.
Structs§
- Component
Capabilities - Shape-owned capability flags consumed by generators and integrations.
- Component
Prototyping - Shape-owned metadata for prototyping generators.
- Component
Suffix - Preferred generated component helper suffix.
- Default
Gpui Component Shape Builder - Default builder for a shape’s normal
GpuiComponentShape::newbehavior. - Direct
Value Storage - Store non-optional source fields directly as
T. - McpInput
- Shape-owned metadata for model-controlled MCP input.
- NoGpui
Render Component - Marker render contract for shapes that do not publish render metadata.
- Required
Value Storage - Store non-optional source fields as
Option<T>and treatNoneas missing.
Enums§
- McpInput
Shape - Framework-neutral shape of structured MCP input accepted by a component.
- McpPrimitive
Kind - Primitive value kinds a component shape can expose to model-controlled tools.
- McpRange
Bound Kind - Primitive kinds that can be used as
{ "min": ..., "max": ... }MCP range bounds. - Render
Capability - Whether a component shape publishes render-component metadata.
- Value
Binding Capability - Whether a component shape publishes value-binding metadata.
- Value
Change - Normalized value change derived from a component event.
Traits§
- Component
Shape For - Marker that a component shape supports a value or field type.
- Component
Shape Metadata - Framework-neutral metadata published by a component shape.
- Component
Value Storage Policy - Marker trait for a component shape’s generated value-holder storage policy.
- Declared
Gpui Component Shape - Marker for component shapes declared through component-shape GPUI macros.
- Default
Value Storage - Storage policies that can synthesize missing/default value-holder storage.
- Gpui
Component Render - Renders a component UI value from a component state entity.
- Gpui
Component Shape - Shape contract for GPUI components.
- Gpui
Component Shape Builder - Configured builder for a GPUI component shape.
- Gpui
Component Shape For - Marker that a GPUI component shape supports a value type.
- Gpui
Component State Value Binding - Value-binding contract implemented by backing component state.
- Gpui
Component Value Binding - Optional value-binding contract for GPUI component shapes.
- Gpui
Form Component Shape Policy - Form storage policy for a GPUI component shape.
- Infallible
Value Storage - Storage policies whose holder-to-model conversion cannot fail because the storage representation always contains a value.
- Value
Storage - Storage behavior used by generated form value holders.
Functions§
- build_
component_ shape - Build component state from a configured shape builder.
- is_
valid_ component_ field_ suffix - Returns whether a component/prototyping suffix is valid.
- seed_
value_ binding_ state - Seed component state from the current value without spelling out the associated-type projection at every generated call site.
- value_
change - Convert a component event into a value change without repeating UFCS projections in generated code.
Type Aliases§
- Gpui
Component Event Of - Event type for a value-bound GPUI component shape and value.
- Gpui
Component State Of - State type for a GPUI component shape.
Derive Macros§
- Gpui
Component Shape - Derive macro for GPUI component shape metadata.