主要内容

load

Class: Simulink.RustImporter
Namespace: Simulink

Load import settings from saved import settings file

Since R2026a

Description

Add-On Required: This feature requires the Simulink Support Package for Rust Code add-on.

success = load(rustObj, filename), where rustObj is an object of class Simulink.RustImporter, loads import settings from a saved import settings JSON file, filename, created using the save method.

Input Arguments

expand all

Rust Importer object, specified as a handle to a Simulink.RustImporter object.

Name or path of JSON file with saved import settings, specified as a character vector or string scalar.

Example: 'importsettings.json'

Data Types: char | string

Output Arguments

expand all

Indicator of whether loading import settings is successful, returned as a logical scalar.

Version History

Introduced in R2026a