pub struct Drag {
pub path: Vec<Coordinate>,
}
Expand description
A drag action.
Fields§
§path: Vec<Coordinate>
An array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg
[
{ x: 100, y: 200 },
{ x: 200, y: 300 }
]
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Drag
impl<'de> Deserialize<'de> for Drag
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
impl StructuralPartialEq for Drag
Auto Trait Implementations§
impl Freeze for Drag
impl RefUnwindSafe for Drag
impl Send for Drag
impl Sync for Drag
impl Unpin for Drag
impl UnwindSafe for Drag
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