Struct yy_typings::room::Asset
source · [−]pub struct Asset {Show 17 fields
pub sprite_id: Option<ViewPath>,
pub head_position: f64,
pub rotation: f64,
pub scale_x: f64,
pub scale_y: f64,
pub animation_speed: f64,
pub color: usize,
pub inherited_item_id: Option<ViewPath>,
pub frozen: bool,
pub ignore: bool,
pub inherit_item_settings: bool,
pub x: f64,
pub y: f64,
pub resource_version: ResourceVersion,
pub name: String,
pub tags: Tags,
pub resource_type: ConstGMSpriteGraphic,
}
Fields
sprite_id: Option<ViewPath>
head_position: f64
rotation: f64
scale_x: f64
scale_y: f64
animation_speed: f64
color: usize
inherited_item_id: Option<ViewPath>
frozen: bool
ignore: bool
inherit_item_settings: bool
x: f64
y: f64
resource_version: ResourceVersion
name: String
resource_type: ConstGMSpriteGraphic
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
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
impl StructuralPartialEq for Asset
Auto Trait Implementations
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more