pub struct DragAction {
pub drag_library: DragLibrary,
pub draggable_selector: String,
pub source_id_attr: String,
pub drop_zone_selector: String,
pub target_id_attr: String,
pub api_endpoint: Option<ApiEndpoint>,
pub position_param: String,
pub opcode: OpCode,
pub confidence: f32,
}Expand description
A discovered drag-and-drop interaction that can be replayed via HTTP.
Fields§
§drag_library: DragLibraryThe drag-and-drop library detected on the page.
draggable_selector: StringCSS selector for draggable elements.
source_id_attr: StringData attribute on draggable elements that holds the source item ID.
drop_zone_selector: StringCSS selector for drop zone elements.
target_id_attr: StringData attribute on drop zones that holds the target container ID.
api_endpoint: Option<ApiEndpoint>The API endpoint that persists the drag result (if discovered).
position_param: StringQuery/body parameter name for the new position (e.g., "pos", "index").
opcode: OpCodeOpCode for this drag action in the binary map spec.
confidence: f32Confidence that this drag interaction is correctly identified, in [0.0, 1.0].
Trait Implementations§
Source§impl Clone for DragAction
impl Clone for DragAction
Source§fn clone(&self) -> DragAction
fn clone(&self) -> DragAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DragAction
impl Debug for DragAction
Source§impl<'de> Deserialize<'de> for DragAction
impl<'de> Deserialize<'de> for DragAction
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 DragAction
impl RefUnwindSafe for DragAction
impl Send for DragAction
impl Sync for DragAction
impl Unpin for DragAction
impl UnsafeUnpin for DragAction
impl UnwindSafe for DragAction
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