Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IModel

The IModel starknet interface.

This is the interface used by offchain components and other contracts to interact with deployed models.

Fully qualified path: dojo::model::interface::IModel

pub trait IModel<T>

Trait functions

unpacked_size

Fully qualified path: dojo::model::interface::IModel::unpacked_size

fn unpacked_size(self: @T) -> Option<u32>

packed_size

Fully qualified path: dojo::model::interface::IModel::packed_size

fn packed_size(self: @T) -> Option<u32>

definition

Fully qualified path: dojo::model::interface::IModel::definition

fn definition(self: @T) -> ModelDef

use_legacy_storage

Fully qualified path: dojo::model::interface::IModel::use_legacy_storage

fn use_legacy_storage(self: @T) -> bool