Database & utility
Scalar
remap_struct()
Map a struct to another struct type, potentially re-ordering, renaming and casting members and filling in defaults for missing values
Arguments & returns
remap_struct(input, target_type, mapping, defaults)
Scalar
| Overload link | input | target_type | mapping | defaults |
Returns |
|---|---|---|---|---|---|
| #01 | ANY | ANY | ANY | ANY |
ANY |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.