pub struct Animation {
pub id: i32,
pub name: String,
pub animation_name: String,
pub animation_hue: i32,
pub position: i32,
pub frame_max: i32,
pub frames: Vec<AnimationFrame>,
pub timings: Vec<AnimationTiming>,
}
Fields§
§id: i32
§name: String
§animation_name: String
§animation_hue: i32
§position: i32
§frame_max: i32
§frames: Vec<AnimationFrame>
§timings: Vec<AnimationTiming>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Animation
impl<'de> Deserialize<'de> for Animation
Source§fn 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
Source§impl<'a> FromValue<'a> for Animation
impl<'a> FromValue<'a> for Animation
Source§fn from_value(
ctx: &FromValueContext<'_>,
value: &'a Value,
) -> Result<Self, FromValueError>
fn from_value( ctx: &FromValueContext<'_>, value: &'a Value, ) -> Result<Self, FromValueError>
Create this type from the given value from the [
ValueArena
]. Read moreAuto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more