Struct dioxus_html::events::DragData
source · pub struct DragData {
pub mouse: MouseData,
}
Expand description
The DragEvent interface is a DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.
Fields§
§mouse: MouseData
Inherit mouse data
Trait Implementations§
source§impl<'de> Deserialize<'de> for DragData
impl<'de> Deserialize<'de> for DragData
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 From<&MouseEvent> for DragData
impl From<&MouseEvent> for DragData
source§fn from(value: &MouseEvent) -> Self
fn from(value: &MouseEvent) -> Self
Converts to this type from the input type.
source§impl PartialEq<DragData> for DragData
impl PartialEq<DragData> for DragData
impl Eq for DragData
impl StructuralEq for DragData
impl StructuralPartialEq for DragData
Auto Trait Implementations§
impl RefUnwindSafe for DragData
impl Send for DragData
impl Sync for DragData
impl Unpin for DragData
impl UnwindSafe for DragData
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