[−][src]Struct librojo::ProjectNode
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 totrue
- If
$path
is set, defaults tofalse
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]
pub fn clone(&self) -> ProjectNode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ProjectNode
[src]
impl Default for ProjectNode
[src]
pub fn default() -> ProjectNode
[src]
impl<'de> Deserialize<'de> for ProjectNode
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ProjectNode> for ProjectNode
[src]
pub fn eq(&self, other: &ProjectNode) -> bool
[src]
pub fn ne(&self, other: &ProjectNode) -> bool
[src]
impl Serialize for ProjectNode
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ProjectNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectNode
[src]
impl Send for ProjectNode
[src]
impl Sync for ProjectNode
[src]
impl Unpin for ProjectNode
[src]
impl UnwindSafe for ProjectNode
[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>,