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 imagesSome("composite")
for the composite image.
It may have other purposes.
The tags assigned to each image. You can apparently tag an image.
resource_type: ConstGmImage
The resource name of the GM Image.
Trait Implementations
impl Clone for Image
[src]
impl Debug for Image
[src]
impl Default for Image
[src]
fn default() -> Self
[src]
Return Image { frame_id: Default::default(), layer_id: Default::default(), resource_version: Default::default(), name: Default::default(), tags: Default::default(), resource_type: Default::default() }
impl<'de> Deserialize<'de> for Image
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Image
[src]
impl PartialEq<Image> for Image
[src]
impl Serialize for Image
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Image
[src]
impl StructuralPartialEq for Image
[src]
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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>,