Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

write_struct_layout

Write struct layout model record to the world storage.

Arguments

  • model - the model selector.
  • key - the model record key.
  • values - the model record values.
  • offset - the start of model record values in the values parameter.
  • layout - list of field layouts.

Fully qualified path: dojo::storage::layout::write_struct_layout

pub fn write_struct_layout(
    model: felt252, key: felt252, values: Span<felt252>, ref offset: u32, layout: Span<FieldLayout>,
)