[][src]Struct librojo::ProjectNode

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

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, UnresolvedRbxValue>

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

impl Clone for ProjectNode[src]

impl Debug for ProjectNode[src]

impl Default for ProjectNode[src]

impl<'de> Deserialize<'de> for ProjectNode[src]

impl PartialEq<ProjectNode> for ProjectNode[src]

impl Serialize for ProjectNode[src]

impl StructuralPartialEq for ProjectNode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,