Struct yy_typings::sprite_yy::Image[][src]

pub struct Image {
    pub frame_id: FilesystemPath,
    pub layer_id: Option<FilesystemPath>,
    pub resource_version: ResourceVersion,
    pub name: Option<String>,
    pub tags: Tags,
    pub resource_type: ConstGmImage,
}

Fields

frame_id: FilesystemPath

Although named FrameId, this is actually the path to the the parent frame resource. The name field will correspond to the Frame.name field.

layer_id: Option<FilesystemPath>

This always corresponds to the LayerId which this SpriteImage corresponds to. It will be None in the case of the composite_image field – otherwise, it will contain a valid path to the parent layer.

resource_version: ResourceVersion

The version of the resource.

name: Option<String>

This appears to only ever be two values:

  • None for normal images
  • Some("composite") for the composite image.

It may have other purposes.

tags: Tags

The tags assigned to each image. You can apparently tag an image.

resource_type: ConstGmImage

The resource name of the GM Image.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return Image { frame_id: Default::default(), layer_id: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.