Struct librojo::Project[][src]

pub struct Project {
    pub name: String,
    pub tree: ProjectNode,
    pub serve_port: Option<u16>,
    pub serve_place_ids: Option<HashSet<u64>>,
    pub glob_ignore_paths: Vec<Glob>,
    pub file_location: PathBuf,
}
Expand description

Contains all of the configuration for a Rojo-managed project.

Project files are stored in .project.json files.

Fields

name: String

The name of the top-level instance described by the project.

tree: ProjectNode

The tree of instances described by this project. Projects always describe at least one instance.

serve_port: Option<u16>

If specified, sets the default port that rojo serve should use when using this project for live sync.

serve_place_ids: Option<HashSet<u64>>

If specified, contains the set of place IDs that this project is compatible with when doing live sync.

This setting is intended to help prevent syncing a Rojo project into the wrong Roblox place.

glob_ignore_paths: Vec<Glob>

A list of globs, relative to the folder the project file is in, that match files that should be excluded if Rojo encounters them.

file_location: PathBuf

The path to the file that this project came from. Relative paths in the project should be considered relative to the parent of this field, also given by Project::folder_location.

Implementations

Tells whether the given path describes a Rojo project.

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

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.

Performs the conversion.

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.