Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

write_model_entity

Write a new entity.

Arguments

  • model_selector - the model selector
  • entity_id - the id used to identify the record
  • values - the field values of the record
  • layout - the model layout

Fully qualified path: dojo::storage::entity_model::write_model_entity

pub fn write_model_entity(
    model_selector: felt252, entity_id: felt252, values: Span<felt252>, layout: Layout,
)