Struct librojo::ProjectNode[][src]

pub struct ProjectNode {
    pub class_name: Option<String>,
    pub children: BTreeMap<String, ProjectNode>,
    pub properties: HashMap<String, UnresolvedValue>,
    pub ignore_unknown_instances: Option<bool>,
    pub path: Option<PathBuf>,
}
Expand description

Describes an instance and its descendants in a project.

Fields

class_name: Option<String>

If set, defines the ClassName of the described instance.

$className MUST be set if $path is not set.

$className CANNOT be set if $path is set and the instance described by that path has a ClassName other than Folder.

children: BTreeMap<String, ProjectNode>

Contains all of the children of the described instance.

properties: HashMap<String, UnresolvedValue>

The properties that will be assigned to the resulting instance.

ignore_unknown_instances: Option<bool>

Defines the behavior when Rojo encounters unknown instances in Roblox Studio during live sync. $ignoreUnknownInstances should be considered a large hammer and used with care.

If set to true, those instances will be left alone. This may cause issues when files that turn into instances are removed while Rojo is not running.

If set to false, Rojo will destroy any instances it does not recognize.

If unset, its default value depends on other settings:

  • If $path is not set, defaults to true
  • If $path is set, defaults to false
path: Option<PathBuf>

Defines that this instance should come from the given file path. This path can point to any file type supported by Rojo, including Lua files (.lua), Roblox models (.rbxm, .rbxmx), and localization table spreadsheets (.csv).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more