Struct yy_typings::Note[][src]

pub struct Note {
    pub parent: ViewPath,
    pub resource_version: ResourceVersion,
    pub name: String,
    pub tags: Tags,
    pub resource_type: ConstGmNote,
}

This is a bodge to handle the fact that we don’t currently have support for many of the Gms2 yy-files. Eventually, we’d like to support all of them, but downstream crates need to have some basic support until then. For now, this can be used for all top level files, providing the simplest of support.

Fields

parent: ViewPath

The parent in the Gms2 virtual file system, ie. the parent which a user would see in the Navigation Pane in Gms2. This has no relationship to the actual operating system’s filesystem.

resource_version: ResourceVersion

The resource version of this yy file. At default 1.1.

name: String

The name of the object. This is the human readable name used in the IDE.

tags: Tags

The tags given to the object.

resource_type: ConstGmNote

Const id tag of the note, given by Gms2.

Trait Implementations

impl Clone for Note[src]

impl Debug for Note[src]

impl Default for Note[src]

fn default() -> Self[src]

Return Note { parent: Default::default(), resource_version: ResourceVersion :: new(1, 1), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

impl<'de> Deserialize<'de> for Note[src]

impl PartialEq<Note> for Note[src]

impl Serialize for Note[src]

impl StructuralPartialEq for Note[src]

Auto Trait Implementations

impl RefUnwindSafe for Note

impl Send for Note

impl Sync for Note

impl Unpin for Note

impl UnwindSafe for Note

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.