Struct yy_typings::YypFolder [−][src]
pub struct YypFolder { pub folder_path: ViewPathLocation, pub order: usize, pub resource_version: ResourceVersion, pub name: String, pub tags: Tags, pub resource_type: ConstGmFolder, }
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
impl Clone for YypFolder
[src]
impl Debug for YypFolder
[src]
impl Default for YypFolder
[src]
fn default() -> Self
[src]
Return YypFolder { folder_path: Default::default(), order: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }
impl<'de> Deserialize<'de> for YypFolder
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for YypFolder
[src]
impl Hash for YypFolder
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for YypFolder
[src]
fn cmp(&self, other: &YypFolder) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<YypFolder> for YypFolder
[src]
impl PartialOrd<YypFolder> for YypFolder
[src]
fn partial_cmp(&self, other: &YypFolder) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for YypFolder
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for YypFolder
[src]
impl StructuralPartialEq for YypFolder
[src]
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
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>,