Trait DynEditorModel

Source
pub trait DynEditorModel {
    // Required methods
    fn schema_set(&self) -> &SchemaSet;
    fn handle_import_complete(
        &mut self,
        asset_id: AssetId,
        asset_name: AssetName,
        asset_location: AssetLocation,
        default_asset: &SingleObject,
        replace_with_default_asset: bool,
        import_info: ImportInfo,
        canonical_path_references: &HashMap<CanonicalPathReference, AssetId>,
        path_references: &HashMap<PathReferenceHash, CanonicalPathReference>,
    ) -> DataSetResult<()>;
    fn data_set(&self) -> &DataSet;
    fn is_path_node_or_root(&self, schema_record: &SchemaRecord) -> bool;
    fn asset_display_name_long(&self, asset_id: AssetId) -> String;
}

Required Methods§

Source

fn schema_set(&self) -> &SchemaSet

Source

fn handle_import_complete( &mut self, asset_id: AssetId, asset_name: AssetName, asset_location: AssetLocation, default_asset: &SingleObject, replace_with_default_asset: bool, import_info: ImportInfo, canonical_path_references: &HashMap<CanonicalPathReference, AssetId>, path_references: &HashMap<PathReferenceHash, CanonicalPathReference>, ) -> DataSetResult<()>

Source

fn data_set(&self) -> &DataSet

Source

fn is_path_node_or_root(&self, schema_record: &SchemaRecord) -> bool

Source

fn asset_display_name_long(&self, asset_id: AssetId) -> String

Implementors§