Struct yy_typings::YypFolder
source · [−]pub struct YypFolder {
pub folder_path: ViewPathLocation,
pub order: usize,
pub resource_version: ResourceVersion,
pub name: String,
pub tags: Tags,
pub resource_type: ConstGmFolder,
}
Expand description
A YYP Folder. These form a graph, but each path is a full path from the root. Therefore, to create a tree, one must walk from the root to the final destination.
Fields
folder_path: ViewPathLocation
The full path from the root to the virtual folder location. The first
part of the path is always folders
. For top level folders, will look
like "Folders/Fonts.yy"
, for example.
order: usize
The order within the subfolder. If custom ordering is added, then this will be the order as the resources appear within the tree structure. Otherwise, it is meaningless, and Gms2 appears to not keep in tracked or coherent.
resource_version: ResourceVersion
The resource version of this Resource. Currently "1.0"
.
name: String
The human-readable name of this Folder. The last part of the
folder_path
and this name should agree. Human readable names
include examples such as “Sprites”, “Light Data”, or “Really Good
Tiles”.
Apparently tags can be placed here, even though they definitely can’t. Don’t do that.
resource_type: ConstGmFolder
The Resource Type of this folder, which is always "GMFolder"
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for YypFolder
impl<'de> Deserialize<'de> for YypFolder
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for YypFolder
impl Ord for YypFolder
sourceimpl PartialOrd<YypFolder> for YypFolder
impl PartialOrd<YypFolder> for YypFolder
sourcefn partial_cmp(&self, other: &YypFolder) -> Option<Ordering>
fn partial_cmp(&self, other: &YypFolder) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for YypFolder
impl StructuralEq for YypFolder
impl StructuralPartialEq for YypFolder
Auto Trait Implementations
impl RefUnwindSafe for YypFolder
impl Send for YypFolder
impl Sync for YypFolder
impl Unpin for YypFolder
impl UnwindSafe for YypFolder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more