Dynamic Structures
Use dynamic structures when output shape is decided at runtime.Schema Definition
Define shape withSchemaBuilder (not with Structure):
- scalars:
string(),int(),float(),bool(),array() - constrained values:
enum(),option() - nested values:
shape(),collection(),object()
Extraction
Runtime Value API
Structure is immutable:
set()andwithData()return new instancesget()reads value or schema defaultvalidate()checks schema compliance