[−][src]Struct librojo::Project
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
impl Project
[src]
pub fn is_project_file(path: &Path) -> bool
[src]
Tells whether the given path describes a Rojo project.
pub fn load_from_slice(
contents: &[u8],
project_file_location: &Path
) -> Result<Self, ProjectError>
[src]
contents: &[u8],
project_file_location: &Path
) -> Result<Self, ProjectError>
pub fn load_fuzzy(
fuzzy_project_location: &Path
) -> Result<Option<Self>, ProjectError>
[src]
fuzzy_project_location: &Path
) -> Result<Option<Self>, ProjectError>
pub fn folder_location(&self) -> &Path
[src]
Trait Implementations
impl Clone for Project
[src]
impl Debug for Project
[src]
impl<'de> Deserialize<'de> for Project
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Project> for Project
[src]
impl Serialize for Project
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Project
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Project
[src]
impl Send for Project
[src]
impl Sync for Project
[src]
impl Unpin for Project
[src]
impl UnwindSafe for Project
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,