pub struct ModelMove {
pub _type: String,
pub x: i32,
pub y: i32,
}Fields§
§_type: StringSpecifies the event type. For a move action, this property is always set to move.
x: i32The x-coordinate to move to.
y: i32The y-coordinate to move to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelMove
impl<'de> Deserialize<'de> for ModelMove
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
Auto Trait Implementations§
impl Freeze for ModelMove
impl RefUnwindSafe for ModelMove
impl Send for ModelMove
impl Sync for ModelMove
impl Unpin for ModelMove
impl UnwindSafe for ModelMove
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